code: public static float asFloat(ModelNode value, float defaultValue) {
          return Double.valueOf(value.asDouble(defaultValue)).floatValue();
      }
docs: Returns the value of the node as a string, or the specified default value if the node is undefined.
  @param value a model node
  @return the value of the node as a string, or the specified default value if the node is undefined.