presto-record-decoder/src/main/java/io/prestosql/decoder/avro/AvroColumnDecoder.java/ObjectValueProvider/getDouble
class ObjectValueProvider:        @Override
        public double getDouble()
        {
            if (value instanceof Double || value instanceof Float) {
                return ((Number) value).doubleValue();
            }
            throw new PrestoException(DECODER_CONVERSION_NOT_SUPPORTED, format("cannot decode object of '%s' as '%s' for column '%s'", value.getClass(), columnType, columnName));
        }