Let $\mathcal{A}$ be a $\sigma$-sub-algebra in the probability space $(\Omega, \mathcal{F}, P)$. Let $X$ be a $\mathcal{A}$-measurable function and $Z$ independent on $\mathcal{A}$. Why can I write $$E(f(X,Z) \mid \mathcal{A})=\int_{\Omega} f(X,Z(\omega)) P(d\omega) \text{?}$$
(Note that $X$ does not depend on is not a function of $\omega$. The background was that I want to have $E(f(X,Z) \mid \mathcal{A})=E(f(X,Z))$)
EDIT Like @Did said, the question should be formulated a bit differently: Why is $$E(f(X,Z) \mid \mathcal{A}) = g(X)$$ with $g(x)=E(f(x,Z))$?
(The integral in the original expression would be more $U(\omega)=\int f(X(\omega),z)\,\mathrm dP_Z(z)$ and I asked myself why $X$ in the integrand is not integrated as well, which I expressed as "is not a function of")