presto-redis/src/main/java/io/prestosql/plugin/redis/RedisRecordCursor.java/RedisRecordCursor/checkFieldType
class RedisRecordCursor:    private void checkFieldType(int field, Class<?> expected)
    {
        Class<?> actual = getType(field).getJavaType();
        checkArgument(actual == expected, "Expected field %s to be type %s but is %s", field, expected, actual);
    }