Checks if a value has a type matching the provided type.
a Variant instance
a VariantType
true if the type of this matches type
type