cast year to int