Use cast instead of transmute from u64 to uint.

Fixes build error on 32-bit targets.
Merge pull request #4 from mbrubeck/32bit

Use cast instead of transmute from u64 to uint.