Are you sure this doesn't break stuff. Piecewise is a subclass of Expr.