Remove some redundant casts on OSX
Merge pull request #949 from lioncash/cast

Remove some redundant casts on OSX