Edit: First, I'll deal with the case where $P$ is absolutely continuous, with a density $p_X(s)$. We have shown that
$$ \int_0^\infty \Pr(X > t) dt = \iint_R p_X(s) \ dsdt,$$
where $p_X(s)$ is the density for $X$ and $R$ is the region
$$ R = \{ (s, t) \in \mathbb R^2 \ : \ 0 < t < \infty, \ t < s < \infty \}.$$
Now notice that the region $R$ can also be described like this:
$$ R =\{ (s, t) \in \mathbb R^2 \ : \ 0 < s < \infty, \ 0 < t < s \} .$$
So an alternative, equivalent way of writing the double integral is:
$$ \iint_R p_X(s) \ ds dt = \int_0^\infty ds \int_0^s dt p_X(s) = \int_0^\infty ds \left( p_X(s) \int_0^s 1 dt \right) = \int_0^\infty ds \ s p_X(s) = \mathbb E[X].$$
However, if we don't assume that $X$ is absolutely continuous (so we don't have a density $p_X(s)$), we can still proceed as follows:
\begin{align} \mathbb E[X] & = \int_\Omega X(s) dP(s) \\ &= \int_\Omega \mu \left( [0, X(s))\right) \ dP(s) \\
&= (P \times \mu) \left( \left\{ (s,t) \in \Omega \times [0, \infty) : 0 \leq t < X(s) \right\}\right)
\\
&= \int_{[0, \infty)} \ P (\{ s \in \Omega : X(s) > t \}) \ d\mu(t)
\\
&= \int_0^\infty \Pr(X > t) dt
\end{align}
Here, $\Omega$ is the probability space, and $\mu$ is the Lebesgue measure, and I'm assuming that $X(s) \geq 0$ on $\Omega$.