coerce

function coerce<Value>(trace:Queue<Event>) -> ValueEvent<Value>

Coerce a value out of an event trace. This tries to cast the first event in the trace to ValueEvent and return it.