presto-tpch/src/main/java/io/prestosql/plugin/tpch/util/Types.java/Types/checkSameType
class Types:    public static void checkSameType(Object left, Object right)
    {
        Class<?> leftClass = left.getClass();
        Class<?> rightClass = right.getClass();
        checkArgument(leftClass.equals(rightClass), "Values must be of same type, got [%s : %s] and [%s : %s]", left, leftClass, right, rightClass);
    }