code: public static NodeList toNodeList(Object o, NodeList defaultValue) {
  	// print.ln("nodeList:"+o);
  	if (o instanceof NodeList) {
  	    return (NodeList) o;
  	}
  	else if (o instanceof ObjectWrap) {
  	    return toNodeList(((ObjectWrap) o).getEmbededObject(defaultValue), defaultValue);
  	}
  	return defaultValue;
      }
docs: casts a Object to a Node List
  
  @param o Object to Cast
  @param defaultValue
  @return NodeList from Object