Visualizer: Fix aliasing violations

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