@Nonnull
    public static ToConverter getToConverter(QueryDataType type) {
        if (type.getTypeFamily() == QueryDataTypeFamily.OBJECT) {
            // User-defined types are subject to the same conversion rules as ordinary OBJECT.
            type = QueryDataType.OBJECT;
        }
        return Objects.requireNonNull(CONVERTERS.get(type), "missing converter for " + type);
    }
@Test
    public void test_bigIntegerConversion() {
        Object converted = getToConverter(DECIMAL_BIG_INTEGER).convert(new BigDecimal("1"));

        assertThat(converted).isEqualTo(new BigInteger("1"));
    }