Show that a function $f$ : $\mathbb{R}^d$ → $C$ is measurable if and only if it is the pointwise almost everywhere limit of continuous functions $f_n$ : $\mathbb{R}^d$ → $\mathbb{C}$.
I have proven the forwards direction, supposing $f_n$ : $\mathbb{R}^d$ → $\mathbb{C}$ has pointwise a.e. limit $f$ then it is measurable. I need help in the backwards direction.
To prove the backwards direction: So far, I think I have to use Egorov's theorem. So there exists a Lebesgue measureable set A of measurable set A of measure at most some $\epsilon$>0 such that $f_n$ converges locally uniformly to f on $\mathbb{R}^d$\A.