Added to_i cast fixing String to number comparison error
Merge pull request #179 from ms32035/master

Added to_i cast fixing String to number comparison error