diff --git a/Sources/CodableTransform.swift b/Sources/CodableTransform.swift index 0308b248..117cf11d 100644 --- a/Sources/CodableTransform.swift +++ b/Sources/CodableTransform.swift @@ -56,7 +56,7 @@ open class CodableTransform: TransformType { do { let encoder = JSONEncoder() let data = try encoder.encode(item) - let dictionary = try JSONSerialization.jsonObject(with: data, options: .allowFragments) as? [String: Any] + let dictionary = try JSONSerialization.jsonObject(with: data, options: .allowFragments) return dictionary } catch { return nil