fix for issue #24
Merge pull request #25 from wayrick/master

Fix issue #24: correct c-generation for casts