cppcheck: don't use C-style casts
Merge pull request #77 from toxeus/removeCCast

cppcheck: don't use C-style casts