Transformation of a Star into a Planet in a Millisecond Pulsar Binary