Fix some compile warnings related to casting
Merge pull request #833 from lioncash/warnings

Fix some compile warnings related to casting