This is just part of the existing `TypedBytes` API. Changing is out of scope but would be happy to hear suggestions for improvement.