This is the primary mechanism for extracting a value from a Variant.
Given a destination type S, it will attempt to extract the value of the
Variant into that type. If the value contained within the Variant
cannot be implicitly cast to the given type S, it will throw an
exception.
You can check to see if this operation will fail by calling the
isImplicitly member with the type S.
Note that attempting to get a statically-sized array will result in a
dynamic array being returned; this is a language limitation.
This is the primary mechanism for extracting a value from a Variant. Given a destination type S, it will attempt to extract the value of the Variant into that type. If the value contained within the Variant cannot be implicitly cast to the given type S, it will throw an exception.
You can check to see if this operation will fail by calling the isImplicitly member with the type S.
Note that attempting to get a statically-sized array will result in a dynamic array being returned; this is a language limitation.