code: public Tree setType(Class<?> type) {
  		if (value == null || value.getClass() == type) {
  			return this;
  		}
  		value = DataConverterRegistry.convert(type, value);
  		if (parent != null && key != null) {
  			if (key instanceof String) {
  				parent.putObjectInternal((String) key, value, false);
  			} else {
  				parent.remove((int) key);
  				parent.insertObjectInternal((int) key, value);
  			}
  		}
  		return this;
  	}
docs: Sets this node's type and converts the value into the specified type.
  
  @param type
  new type
  
  @return this node