 				if let contentHTML = record[CloudKitArticle.Fields.contentHTML] as? String {
 					let data = Data(contentHTML.utf8) as NSData
 					if let compressedData = try? data.compressed(using: .lzfse) {
-						record[CloudKitArticle.Fields.contentHTMLData] = compressedData
+						record[CloudKitArticle.Fields.contentHTMLData] = compressedData as Data
 						record[CloudKitArticle.Fields.contentHTML] = nil
 					}
 				}

		return record
	}

	func compressArticleRecords(_ records: [CKRecord], completion: ([CKRecord]) -> Void ) {
		var result = [CKRecord]()
		
		for record in records {

				if let contentText = record[CloudKitArticle.Fields.contentText] as? String {
					let data = Data(contentText.utf8) as NSData
					if let compressedData = try? data.compressed(using: .lzfse) {
						record[CloudKitArticle.Fields.contentTextData] = compressedData as Data
						record[CloudKitArticle.Fields.contentText] = nil
					}
				}
				
			}
			
			result.append(record)
		}
		
		return result
	}

}
