Use explicit types of casts
Merge pull request #20 from vog/improve-casts

Use explicit types of casts