I think this should be isAssignableFrom(type, specializingType) but I may be wrong.