White dwarf
How does a white dwarf fit a Sun inside an Earth?
By collapsing until its atoms are literally crushed against each other. A white dwarf condenses most of a star's mass into a volume comparable to our planet. A cubic centimetre of this material weighs roughly a tonne.