private Object convert(float value) {
        if (Float.isNaN(value)) {
            return NanNumber.NaN;
        } else {
            return Float.valueOf(value);
        }
    }
A 16-bit float, represented as a (32-bit) Float in Java, as there is no 16-bit float support.

@author bratseth
container-search/src/main/java/com/yahoo/prelude/fastsearch/Float16Field.java