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