asCoseLabel

The value of a data item containing a COSE label (either number or string)

This is equivalent to calling CoseLabel.fromDataItem

Throws

if not the data item isn't a COSE label