Ensure ac is stored as an int