code: public static List toList(Object o, boolean duplicate, List defaultValue) {
  	try {
  	    return toList(o, duplicate);
  	}
  	catch (PageException e) {
  	    return defaultValue;
  	}
      }
docs: cast a Object to a Array Object
  
  @param o Object to cast
  @param duplicate
  @param defaultValue
  @return casted Array