Replace isKindOfClass: checks with polymorphic methods