Change rotation to an int