Cast it to int once we've calculated it.