code: @SuppressWarnings("unchecked")
  	protected static final Tree toTree(Object object) {
  		if (object == null) {
  			return new Tree((Tree) null, null, null);
  		}
  		if (object instanceof Tree) {
  			return (Tree) object;
  		}
  		if (object instanceof Map) {
  			return new Tree((Map<String, Object>) object);
  		}
  		return new Tree((Tree) null, null, object);
  	}
docs: Converts an Object to a Tree.
  
  @param object
  input Object
  @return object converted to Tree