How to get transparency to cast shadows.

Yes you can make the character skeletal mesh not visible at all, but still cast shadow (have done this on accident a time or two), Not sure about alpha channel only, but Unreal’s GBuffer has many buffers and some have RGBA channels. Not sure if you can control shadow casting to one specific channel of one specific buffer without changing the render code, but whatever you are trying to accomplish there is probably a somewhat easier way than the solution you propose.