Convert idgen to D