Don't need to cast events in xml handlers anymore