Fixed -Wcast-align warning by changing variable type.

Fixes bug #14013.
Thanks to kentwilliams.

Change-Id: I50919e594763826228b489978055d6b7950b4569
Merge topic 'ImageReader-CastAlign' into master

57745b3b Fixed -Wcast-align warning by changing variable type.