Use to_bytes.