Get rid of more superfluous casts with DMD arrays.

There are still a few more left.
Merge pull request #796 from klickverbot/more-typed-arrays

Get rid of more superfluous casts with DMD arrays.