bytes

Generates a byte representation of this ObjectId instance.

Because ByteArray is mutable, each access will generate a new array.

The output array can be passed to the ObjectId constructor to obtain a new identical ObjectId instance.