some other casting issues
Merge pull request #36 from spotify/erikbern/gcc-happy

minor fix to make gcc happier