This should be matched in the function head using the record, so something like
```erlang
handle_cast ({send, Event = #lwes_event { name = EventName, attrs = Attrs }},