Added a few missing casts.
Merge remote-tracking branch 'upstream/master'
Merge pull request #27 from ArjanKn/master

Added 2 missing casts reported as errrors by DMD-2.065 head.