Julia equivalent to Python's int.to_bytes

Thanks for the answer. That’s almost, like really close to what I’m trying to do. However, in Python, I can specify the number of bytes that the number is represented in, and the representation follows. Is there any way to specify that, the number of bytes to represent it with, as of yet?

If not, a little guidance on how to accomplish this would be greatly appreciated :>