Recall the result that for a nonnegative random variable $X$ on $(\Omega, \mathcal{F}, P)$, $$ E[X] = \int_0^\infty (1 - F(x)) dx, $$ where $F$ is the cdf of $X$. In many of the proofs I've seen for this we rely on Tonelli's theorem in the step $$ \int_\Omega \int_0^\infty \mathbf{I}_{[0, X(\omega))}(x) \mathrm{d}x \mathrm{d}P(\omega) = \int_0^\infty \int_\Omega \mathbf{I}_{[0, X(\omega))}(x) \mathrm{d}P(\omega) \mathrm{d}x. $$ Tonelli's theorem, however, requires that $\mathbf{I}_{[0, X(\omega))}(x)$ be $\mathcal{F} \otimes \mathcal{B}$-measurable where $\mathcal{B}$ is the Borel sigma-algebra on $\mathbb{R}$. I've spent quite a while trying to show this is the case here, but have come to believe I'm not equipped to handle showing measurability on product sigma algebras. Would anyone be able to demonstrate a method to show this?
As an aside, it seems that measurability is often implicitly assumed in applications of Tonelli and Fubini, and rather, the nonnegativity or integrability (which also implicitly assumes measurability) is focused on. Is it just that measurability is "so easy" to get that it's okay to sort of neglect?