The internal evolution of planetary-sized objects