Convert a HRExpr  to an array.