For Realm Kotlin sdk, is there a simple way to serialize ObjectId? The ObjectId itself is an interface while the actual object to be serialized is ObjectIdImpl, so I always get the error
ObjectIdImpl is not registered for polymorphic serialization in the scope of ObjectId