                 default:
                     return number
                 }
+            case let intValue as Int:
+                return NSNumber(value: intValue)
+            case let doubleValue as Int:
+                return NSNumber(value: doubleValue)
                 
             case let dictionary as [String: Any]:
                 switch type {

    }
    
    static func getValue(forRecordField field: [String: Any]) -> CKRecordValue? {
        #if !os(Linux)
        if  let value = field[CKRecordFieldDictionary.value],
            let type = field[CKRecordFieldDictionary.type] as? String {
        

        } else {
            return nil
        }
    }
    

