Explicit cast to make C++ compilers happy
Merge pull request #89 from cforfang/alignment_fix_2

Explicit cast to make C++ compilers happy