Allow inheritance check for non-class types
Merge pull request #4459 from wmtan/AllowInheritanceCheckForNonClasses

Allow inheritance check for non-class types