A lot of implicit cast are existing, it would be nice to ad the flag -Wconversion and remove all warnings