Trying to cast off

I’m rather new to knitting and have just finished my second scarf. My mom helped me with the first one, especially with casting off. I’m now finishing my second scarf, this time with out my moms help. I’m just about finished casting off using the “knit 2, pull the first over, repeat” process. I’ve gotten to the very last stitch and don’t know if I should just pull it off. It looks like if I do, it’ll come undone. Can anyone help m? I watched the video, but what to do with the last stitch was never discussed.

Icarus
I’m a man, but I can change. If I have to. I guess.
–The Mans Prayer, Red Green

I normally just cut the yarn before removing the last stitch, then either use the knitting needle or a crochet hook to pull the tail through the last loop.