Cast correctly.

Signed-off-by: Tamas TEVESZ <ice@extreme.hu>