[#97] Type coercion bug-fix

* Use long instead of int