WaveLab 10 plugin unloading

never try to use a C-cast for interface!!!
you could use like you did with queryInterface or:

FUnknownPtrVst::IHostApplication hostApp (context);
if (hostApp) { …