Make getStickyEvent and removeStickyEvent generic so the caller doesn't ...

...need casts