It is not what you want that you attract.
You attract what you believe to be true.
Praying, then, is recognizing yourself to be that which you desire to be rather than begging God for that which you desire.
The core of the process is to create a state of mind where you feel you already have obtained the thing desired. Indeed, this is a very intelligent way of praying.