Fix a wrong type casting.

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>