ensureType

open override fun Solve.Request<ExecutionContext>.ensureType(context: ExecutionContext, term: Term)

Template method expected to throw if term does not have the expected type, and return normally otherwise.