Fixed misalignment for 32 bit architectures

This should fix issue issue #10. It removes the hard cast from char* to uint32_t* that causes misalignment errors on a 32 bit architecture (e.g ARM). I've tested it on a ARMv9 (Phidget SBC) and it seems to work fine.