Fixes a type conversion error
Merge pull request #4 from arpg/fix-narrowing

Fixes a type conversion error