Suppose $x_1, \cdots, x_n$ is a random sample from a uniform $(0, \theta)$ distribution. Suppose $\theta$ is unknown. Let $y_n= \max (x_1,\cdots, x_n)$. Based on the cdf of $y_n$, it is seen that $y_n$ converged in probability to $\theta$, indicating it is a consistent estimate of $\theta$.
I got the cdf of $y_n$ to be $$F\{y_n\} (t) = \left(\frac{t}{\theta}\right)^n $$
But I don't understand how the cdf helps us to see that $y_n$ is a consistent estimate of theta. Can someone explain?