Starting to add additional info to the cast ast to allow transformation into mercury terms.