Remove old style cast

    - Allows use of -Werror=old-style-cast on gcc
Merge pull request #39 from rfarr/remove-old-style-cast

Remove old style cast