fix casting issues

This commit is contained in:
John Estropia committed 2019-10-29 20:30:03 +09:00
1 parent 6b9a4b480b
commit 468922d5ed
9 files changed
+23 -23

No files matched your search

+1 -1
View File
@@ -356,7 +356,7 @@ extension ObjectPublisher where O: NSManagedObject {
public func value<V: AllowedObjectiveCKeyPathValue>(forKeyPath keyPath: KeyPath<O, V>) -> V! {
let key = String(keyPath: keyPath)
return self.snapshot?.dictionaryForValues()[key] as? V
return self.snapshot?.dictionaryForValues()[key] as! V?
}
}