Type Erasure Magic in Swift (realm.io)