My compiler was not able to deal these casts by itself.
Merge pull request #148 from pfrolim/master

My compiler was not able to deal these casts by itself.