You can use the byte argument type parser to handle byte values.
Description
The byte argument type parser validates and converts text values into byte
values. It ensures that the provided value is a valid byte, adhering to the
byte-specific constraints.