             for pathComponent in contents {
                 let path = cachePath.stringByAppendingPathComponent(pathComponent)
                 if let attributes : NSDictionary = fileManager.attributesOfItemAtPath(path, error: &error) {
-                    size += Int(attributes.fileSize())
+                    size += attributes.fileSize()
                 } else {
                     Log.error("Failed to read file size of \(path)", error)
                 }

    
    public let path : String
    
    public var size : Int = 0
    
    public var capacity : Int = 0 {
        didSet {
            dispatch_async(self.cacheQueue, {
                self.controlCapacity()

        return cacheQueue
        }()
    
    public init(path : String, capacity : UInt64 = UINT64_MAX) {
        self.path = path
        self.capacity = capacity
        dispatch_async(self.cacheQueue, {
