diff --git a/Sources/Observing/ListMonitor.swift b/Sources/Observing/ListMonitor.swift index cf69710..ad96481 100644 --- a/Sources/Observing/ListMonitor.swift +++ b/Sources/Observing/ListMonitor.swift @@ -677,7 +677,7 @@ public final class ListMonitor: Hashable { internal func downcast() -> ListMonitor { - return unsafeDowncast(self, to: ListMonitor.self) + return unsafeBitCast(self, to: ListMonitor.self) } internal func registerChangeNotification(_ notificationKey: UnsafeRawPointer, name: Notification.Name, toObserver observer: AnyObject, callback: @escaping (_ monitor: ListMonitor) -> Void) { diff --git a/Sources/Observing/ObjectMonitor.swift b/Sources/Observing/ObjectMonitor.swift index bc9add6..9956a75 100644 --- a/Sources/Observing/ObjectMonitor.swift +++ b/Sources/Observing/ObjectMonitor.swift @@ -212,7 +212,7 @@ public final class ObjectMonitor: Equatable { internal func downcast() -> ObjectMonitor { - return unsafeDowncast(self, to: ObjectMonitor.self) + return unsafeBitCast(self, to: ObjectMonitor.self) } deinit {