Cast VRayPlugin

Might be a dumb question, but using the C++ API, how do I cast a VRay::Plugin to a more specific plugin?
something like
VRay::Plugin some_connection = some_plugin.get_color_a();
VRay::Plugins::TexBlend blah = (VRay::Plugins::TexBlend) some_connection;

There are plugin_cast<T> and plugin_checked_cast<T> in the sdk:

VRay::Plugins::TexBlend blah = plugin\_cast(some\_connection); or VRay::Plugins::TexBlend blah = plugin\_checked\_cast(some\_connection); if (blah) ...