don't get rid of TCast in the transformer