private <T> T getPrimitiveArray(String colName) {
        try {
            BinaryStreamReader.ArrayValue array = readValue(colName);
            if (array.itemType.isPrimitive()) {
                return (T) array.array;
            } else {
                throw new ClientException("Array is not of primitive type");
            }
        } catch (ClassCastException e) {
            throw new ClientException("Column is not of array type", e);
        }
    }
Converts value in to a string representation. Does some formatting for selected data types
@return string representation of a value for specified column
client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/AbstractBinaryFormatReader.java