explicit casts to remove warnings
Merge pull request #2351 from AndrewMeadows/warnings

removal of more compilation warnings