code: public static DateTime toDate(Object o, boolean alsoNumbers, TimeZone tz) throws PageException {
  	return DateCaster.toDateAdvanced(o, alsoNumbers ? DateCaster.CONVERTING_TYPE_OFFSET : DateCaster.CONVERTING_TYPE_NONE, tz);
      }
docs: cast a Object to a DateTime Object
  
  @param o Object to cast
  @param alsoNumbers define if also numbers will casted to a datetime value
  @param tz
  @return casted DateTime Object
  @throws PageException