Emit temporaries for casts.