New long_to_bytes method