convert year to int