wilhelm: Fix aliasing violations

Change-Id: I5687143362d5913072395f54bd4e371002ae1d14
Signed-off-by: zwliew <zhaoweiliew@gmail.com>