Original: He was succeeded by his elder surviving son, Gian Gastone, when he died, in 1723.
Simplified: He was succeeded by his elder surviving son, Gian Gastone de 'Medici, when he died, in 1723.