I'm not clearly sure what do you want to find, but if you want to see if anObject is and instance of aClass or it's superclasses, you can use:
anObject isKindOf: aClass
If you want to see if anObject (class) inherits from aClass, then you use:
anObject inheritsFrom: aClass