             return self.numberValue.int8Value
         }
         set {
-            self.object = newValue
+            self.object = NSNumber(value: Int(newValue))
         }
     }
     

        }
        set {
            if let newValue = newValue {
                self.object = newValue
            } else {
                self.object =  NSNull()
            }

        set {
            _error = nil
            switch newValue {
            case let number as NSNumber:
                if number.isBool {
                    _type = .bool
