Ensure payload type is properly checked when comparing against cached events.