According to this answer, all that's necessary to get an unmanaged object from an existing managed object is to do this:
let unmanagedObject = Object(value: existingObject)
However, when I do this, any fields of the existingObject
that are managed realm objects themselves remain managed realm objects after copying. What do I have to do so that all sub-objects of the copy also become unmanaged?