It's provably correct that for a nonnegative random variable denoted as $Z$. The expectation of $Z$ can be written as follows: $$\mathbb{E}[Z] = \int_{x=0}^{\infty}\Pr[Z\geq x]dx.$$
Well, it can be proved by methods "integration by part", however, I think there may exist a more intuitive interpretation and a direct connection with ordinary definition of expectation $$\mathbb{E}[Z] = \int_{x=0}^{\infty}f(x)xdx$$
Hope someone could give some hints, thx.
Also, for discrete case, is there also intuitive interpretation?