Replace instanceof with checkType in Hive connector