Also needs a cast here
Merge pull request #48 from naoliv/patch-2

Also needs a cast here