It fails to compile if not casted as long here
Merge pull request #46 from naoliv/patch-1

It fails to compile if not casted as long here