     public func readObject(aID: UID) -> O! {
         
         //var key = NSNumber(long: aID) // Workaround for the Swift bridge
-        var result :O! = nil //cache.objectForKey(key) as O!
+        var result :O! = cache.objectForKey(aID) as O!
         
         if result == nil {
             // not in cache

                result.uid = aID
                
                //var key = NSNumber(long: uid)
                //self.cache.setObject(result, forKey: key)
            }
        }
        

    public func deleteObject(aObj: O) {
        
        if aObj.uid != nil {
            cache.removeObjectForKey(aObj.uid!)
            self.deleteBlock(aObj.uid!)
            aObj.uid = nil;
        }
