force cast average rating to an integer