fix casting issues

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

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?
}
}