Converts a value to an array of bytes.
import { toBytes } from "thirdweb/utils";const bytes = toBytes("0x1a4");console.log(bytes); // Uint8Array(2) [ 1, 164 ]
The array of bytes representing the value.