ast as array