Convert a texture channel to a Texture2D

I tried! But It failed while casting texture to texture2D.