Data is stored correctly, however when I get the data back from Mongodb, I get the
IllegalArgumentException. cannot set java.lang.Float to java.lang.Double.
You need to deserialize the object, and assign to the lowest leaf of the tree. and then use the converter to convert from double to float and vice versa.