Type casting fixed, so compiler does not complain now
Merge pull request #1 from kuzmas/master

Type casting fixed, so compiler does not complain now