         }
     }
     
-    open func preference(_ key:String) -> AnyObject? {
-        return self.userDefaults.object(forKey: key) as AnyObject?
+    open func preference(_ key:String) -> Any? {
+        return self.userDefaults.object(forKey: key) as Any?
     }
     
     open func boolValue(_ key:String, defaultValue:Bool) -> Bool {

    }
}

open class Preference<T:NSSecureCoding> {
    
    public init() {
        

        return UserDefaults.standard
    }
    
    open func setPreference(_ object:Any?, key:String) {
        if let objectToSet:Any = object {
            self.userDefaults.set(objectToSet, forKey: key)
            self.userDefaults.synchronize()
        }
