[guided]The purpose of this step is to replace the moment $\mathbb E[Y^p]$ by a tail integral, because the hypothesis controls precisely the tail probability $\mathbb P(Y\geq t)$.
Let $\mathcal L^1$ denote one-dimensional Lebesgue measure on $[0,\infty)$ with its Borel $\sigma$-algebra $\mathcal B([0,\infty))$. First define the non-negative random variable $Y:(\Omega,\mathcal F)\to([0,\infty),\mathcal B([0,\infty)))$ by $Y(\omega):=|X(\omega)|$. Since $X$ is measurable and the absolute value map $\mathbb R\to[0,\infty)$ is Borel measurable, $Y$ is measurable. For every fixed $\omega\in\Omega$, ordinary one-variable integration gives
\begin{align*}
Y(\omega)^p=\int_0^{Y(\omega)} p t^{p-1}\,d\mathcal L^1(t).
\end{align*}
We rewrite the variable upper limit using an indicator function:
\begin{align*}
\int_0^{Y(\omega)} p t^{p-1}\,d\mathcal L^1(t)
=\int_0^\infty p t^{p-1}\mathbb 1_{\{t\leq Y(\omega)\}}\,d\mathcal L^1(t).
\end{align*}
Now define $H:\Omega\times[0,\infty)\to[0,\infty]$ by $H(\omega,t):=p t^{p-1}\mathbb 1_{\{t\leq Y(\omega)\}}$. The function $H$ is non-negative and measurable: the factor $t\mapsto p t^{p-1}$ is Borel measurable on $[0,\infty)$, and the set
\begin{align*}
\{(\omega,t)\in\Omega\times[0,\infty):t\leq Y(\omega)\}
\end{align*}
is measurable because it is determined by the measurable map $(\omega,t)\mapsto t-Y(\omega)$. Therefore Tonelli's theorem for non-negative measurable functions applies (citing a result not yet in the wiki: Tonelli's theorem). It permits us to exchange the order of integration without first proving integrability. We first write
\begin{align*}
\mathbb E[Y^p]=\int_\Omega Y(\omega)^p\,d\mathbb P(\omega).
\end{align*}
Substituting the pointwise representation of $Y(\omega)^p$ gives
\begin{align*}
\mathbb E[Y^p]=\int_\Omega\int_0^\infty p t^{p-1}\mathbb 1_{\{t\leq Y(\omega)\}}\,d\mathcal L^1(t)\,d\mathbb P(\omega).
\end{align*}
Tonelli's theorem then gives
\begin{align*}
\mathbb E[Y^p]=\int_0^\infty p t^{p-1}\left(\int_\Omega \mathbb 1_{\{t\leq Y(\omega)\}}\,d\mathbb P(\omega)\right)\,d\mathcal L^1(t).
\end{align*}
The inner integral is the probability of the event $\{\omega\in\Omega:Y(\omega)\geq t\}$, so
\begin{align*}
\int_\Omega \mathbb 1_{\{t\leq Y(\omega)\}}\,d\mathbb P(\omega)=\mathbb P(Y\geq t).
\end{align*}
Hence
\begin{align*}
\mathbb E[Y^p]
=p\int_0^\infty t^{p-1}\mathbb P(Y\geq t)\,d\mathcal L^1(t).
\end{align*}[/guided]