STYLE: Used static cast from old / c-style cast
Merge pull request #144 from aylward/CppStaticCast

Resolve CppCheck error: old c-style cast