How would you put a texture on a cube using c#? (SOLVED)

I have been looking for a way to do this for a while. I’m trying to put a texture called “Stone.bmp” from a Resources file I created onto a cube. It keeps saying that I need to convert the Object type into a Texture. How would I fix this?

Never mind, I got it.