Encode the value into CBOR bytes
@override List<int> encode() { if (value is int || (value as BigInt).isValidInt) { return CborIntValue(toInt()).encode(); } return CborSafeIntValue(value).encode(); }