theres also a CreateZExtOrTrunc function, although it just implements this same logic