Wraps the expression with the
errors.As()
function.