Added explicit cast, for weird compilers

Signed-off-by: pralonga <aurelien.pralong@gmail.com>