as<T extends CborObject<Object?> > method
Implementation
T as<T extends CborObject>({String? operation}) {
if (this is! T) {
throw CborSerializableException.castingFailed<T>(
value,
operation: operation,
);
}
return this as T;
}