def METHOD_NAME(
    payload_bytes: typing.Union[bytes, bytearray]
) -> typing.List[int]:
    """Convert payload bytes to Mavlink.payload64."""
    payload_bytes = bytearray(payload_bytes)
    payload_len = len(payload_bytes)
    payload_octets = int(payload_len / 8)
    if payload_len % 8 > 0:
        payload_octets += 1
        payload_bytes += b"\0" * (8 - payload_len % 8)
    return struct.unpack(f"<{payload_octets}Q", payload_bytes)