Gets whether the variant contains the given type.
Whether the variant is storing a type with the given type's type id.
See Implementation
Gets whether the variant contains the given type.