The function of the infinitive phrase in the sentence I have always wanted to go to Mexico is object of the verb. Since it isn't preceded by a preposition, it cannot be an object of the preposition, and since it is definitely an object, the only remaining choice is object of the verb.