Use _safe_cast to avoid dying on illegal dates.