         return decoder(key, data)
     }
     
-    public func objectsForKeys(_ keys: [String]) -> [AnyObject?] {
-        var result = [AnyObject?](count: keys.count, repeatedValue: nil)
+    public func objectsForKeys(_ keys: [String]) -> [NSObject?] {
+        var result = [NSObject?](count: keys.count, repeatedValue: nil)
         var index = 0
         for key in keys {
             result[index] = self[key]

        }
        catch let error {
            print("Problem creating parent directory: \(error)")
            //return
        }
        self.db = levelDBOpen(path.cString)
    }

import CLevelDB

public typealias LevelDBKeyBlock = (String, UnsafeMutablePointer<Bool>) -> Void
public typealias LevelDBKeyValueBlock = (String, NSObject, UnsafeMutablePointer<Bool>) -> Void
public typealias LevelDBLazyKeyValueBlock = (String, () -> NSObject?, UnsafeMutablePointer<Bool>) -> Void

public class LevelDB {
    
    var name: String
    var path: String
    public var encoder: (String, NSObject) -> NSData?
    public var decoder: (String, NSData) -> NSObject?
    var db: UnsafeMutablePointer<Void>?
    
    // MARK: - Life cycle
