Fixed a typecast warning.

Signed-off-by: Max Seelemann <max@the-soulmen.com>