Union.isType

bool isType(T)()

Returns true if the given type is the same as the currently active type.