Checks if this value is of the specified enum type.
Checks if this value is of the specified enum type using KClass.