In the sentence "I want to sleep when I'm tired," the words "to sleep" are a/an

A. predicate adjective.
B. indirect object.
C. prepositional phrase.
D. infinitive phrase.