Fix invalid type error
Merge pull request #3 from hakobera/fix-invalid-type-rawnum

Fix invalid type error