Cast ActivitiEvent to ActivitiEntityEvent in BaseEntityEventListener.