Avoid compiler error
Merge pull request #66 from tbeu/add-cast

Avoid compiler error