Get AR Texture for passthrough material

Hey y’all!

I am trying to get and a reference to the current camera feed to make a masking material for an AR app, but this cast keeps on failing. Any ideas?