The app itself needs to support Chromecast, on the OS side you just need to give it the "search for devices on the local network" permission. No full screen casting or stuff like that, but most streaming apps work nicely with the Chromecast.
The best option would be to get an Apple TV, but that's a bit expensive compared to a 19€ Chromecast and has a remote that goes missing every 10 seconds.