public DoubleValue asDoubleValue() {
        return new DoubleValue(asDouble());
    }
Returns this value as a double value, or throws UnsupportedOperationException if it cannot be represented as a double
searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/evaluation/Value.java