Sensor: Fix aliasing violation

Change-Id: Ia3b7fca27d165c2804c8aceebf330d256d781448
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>