Fixed warnings about implicit type conversions.