cast<T extends CborObject> method

T cast<T extends CborObject>()

Implementation

T cast<T extends CborObject>() {
  if (this is T) return this as T;
  throw CborException("cbor object casting faild",
      details: {"excepted": "$T", "value": runtimeType.toString()});
}