Thats because you probably are typing "star" in the rating. Covnert.ToInt32 cannot convert "5 star" to int. You don't have to store the word "star" with rating. You can display it while diplaying the raniking but if you just have numbers in your ranking, it will be easier.