trying to compute average rating, error in switching gae datatypes