I am trying to express the creation and annihilation operators of a single quantum harmonic oscillator in coordinate space. The problem is that, when I use $P \to -i\hbar d/dx$, I get $a=a^\dagger$:
$$a=\left(\frac{m \omega}{2 \hbar}\right)^{1 / 2} X+i\left(\frac{1}{2 m \omega \hbar}\right)^{1 / 2} P \\ = \left(\frac{m \omega}{2 \hbar}\right)^{1 / 2} X + \hbar \left(\frac{1}{2 m \omega \hbar}\right)^{1 / 2} \frac{d}{dx}.$$
Since all coefficients are real and $X$ is Hermitian, it follows that $a^\dagger = a$. What am I doing wrong here?