             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()

            let modificationDate = attributes.fileModificationDate()
            let fileSize = attributes.fileSize()
            if fileManager.removeItemAtPath(path, error: &error) {
                self.size -= fileSize
            } else {
                Log.error("Failed to remove file", error)
            }
