How to check "is" relationship between types?

#1

How can I check if TypeA is TypeB?
I imagine it’s something similar to TypeA.is(TypeB)?

#2
MeterAsset.isA(Asset)
true