Fixed all warnings (type conversions)