Relax constraints for castUntypedExprValue
Export sortToLisp function