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

Apredicate adjective.
Bindirect object.
Cprepositional phrase.
Dinfinitive phrase.