Fix -Wcast-align violation

Oops! I have totally forgotten to take the alignment-strict processors into account.

Removed some type conversions that cause ```-Wcast-align``` violations.
Those casts can cause CPU exceptions on the alignment-strict CPUs like ARM, MIPS and so forth.