Some type conversion warnings fixed. If this breaks anything create a bug report ASAP and I will revert it gladly.

Signed-off-by: Matheus Macabu <mkbu95@gmail.com>