Fixed warnings for raw type conversions.