Fixed type casting issue
Merge pull request #256 from sheebans/master

Fixed type casting issue