Adding explicit casts from void* and removing an unneeded type suffix.
These cause errors in MSVC++.