 /// Extension providing a default wrapping implementation for `RawRepresentable` Enums
 public extension WrappableEnum where Self: RawRepresentable {
     public func wrap(context: Any?, dateFormatter: DateFormatter?) -> Any? {
-        return self.rawValue as AnyObject
+        return self.rawValue
     }
 }
 

 */
public func wrap<T>(_ objects: [T], writingOptions: JSONSerialization.WritingOptions? = nil, context: Any? = nil, dateFormatter: DateFormatter? = nil) throws -> Data {
    let dictionaries: [WrappedDictionary] = try wrap(objects, context: context)
    return try JSONSerialization.data(withJSONObject: dictionaries as AnyObject, options: writingOptions ?? [])
}

// Enum describing various styles of keys in a wrapped dictionary

/// Extension customizing how NSDictionaries are wrapped
extension NSDictionary: WrapCustomizable {
    public func wrap(context: Any?, dateFormatter: DateFormatter?) -> Any? {
        return try? Wrapper(context: context, dateFormatter: dateFormatter).wrap(dictionary: self as [NSObject : AnyObject])
    }
}

