Silly question, but for some reason I'm a bit uncertain about this this trivial example perhaps:
I have the following simple BS model $$ S_T = S_t \exp \left\{ -\frac12 \sigma^2 (T-t) + \sigma (W_T - W_t) \right \} $$
I'd like to compute the following conditional expectation: $$ E_0 \left[ \left. \int_0^T S_t dt\, \right| S_T \right] $$
Can't I just write $$ E_0 \left[ \left. \int_0^T S_t dt\, \right| S_T \right] = \int_0^T \int_{-\infty}^{\infty} S_T \exp \left\{ \frac12 \sigma^2 (T-t) - z\sigma \sqrt{T-t}\right \} \phi(z) \, dz \, dt $$ with $$ \phi(z) = \frac{1}{\sqrt{2\pi}} e^{-\frac12 z^2} \enspace ? $$