Deactivate warning when converting objects to structs