Nearly bright as the sun, sometimes dark as space. Like a pearl on black velvet, with diamonds twinkling in a case. What am I?

The moon.

Source: Riotous Riddles