Ensures that the current event is of the specified type, returns it and moves to the next event.
public T Expect<T>() where T : ParsingEvent