Use the correct native_type when destroying a record. [#77432872]