Either look at the type (the vt field), and then read the relevant field in the underlying VARIANT structure, or use
one of the accessor functions[
^].
Since the accessors may call VariantChangeType, you may not get the results you expect. Looking at the vt field is the more robust way to go.