Another way to say "People prefer to sleep in the dark" is "In the dark is the preferred place for people to sleep."