Merge pull request #197 from bluss/future-compat-warning

Fix future compat warning with raw pointer casts