# How to type \sim above another symbol x?

I want to put a "~" above x, just like \hat x but replacing \hat with \sim.

How to do that?

-