See the
_variant_t[
^] class and the extractor functions. When the requested type is not identical to the type stored in the variant, the class tries to perform a conversion. Use the
vt
member of the encapsulated
VARIANT
type to determine which type is stored.