static boolean haveType(final Object val1,
                            final Object val2,
                            final Class<?> type) {
        return type.isInstance(val1) && type.isInstance(val2);
    }
This is to deal with the

@param val1
@param val2
@return
stroom-query/stroom-query-language/src/main/java/stroom/query/language/functions/ValComparators.java