If fX|Y(x|y) is the conditional probability distribution/density function of X given Y=y at x, the conditional expectation of g(X) given Y=y is
Letting g(X)=X, the conditional mean of X given Y=y is
and the second moment:
The conditional variance of X given Y=y is