explicit numeric conversion

Instead of implicit conversion, proposing the explicit numeric conversion.
Merge pull request #1 from volkanik/patch-1

Improve performance with explicit numeric conversion