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

+6 -6
View File
@@ -272,9 +272,9 @@ public enum TransformableContainer<O: CoreStoreObject> {
}
}
internal var valueForSnapshot: Any {
internal var valueForSnapshot: Any? {
return self.value as Any
return self.value
}
@@ -380,7 +380,7 @@ public enum TransformableContainer<O: CoreStoreObject> {
return customGetter(PartialObject<O>(object))
}
return object.value(forKey: self.keyPath) as? V
return object.value(forKey: self.keyPath) as! V?
}
}
set {
@@ -489,14 +489,14 @@ public enum TransformableContainer<O: CoreStoreObject> {
}
customSetter(
PartialObject<O>(rawObject),
newValue as? V
newValue as! V?
)
}
}
internal var valueForSnapshot: Any {
internal var valueForSnapshot: Any? {
return self.value as Any
return self.value
}