Cast To.....

I tried doing that but I get this blue warning and then it doesn’t work.

The cast still fails.