begin dtype transition in cg