How to make an Transparent object or even character but could have dynamic shadow while under light?

Hi there,

As the topic described, I want to have one object or character that I can set up how transparent it is. But even it’s transparent, I want it to have the shadow while under lights.

I want to achieve this goal that this object has a high-tech surface to pretend to be transparent and even invisible, but it actually exists there so it could have shadow while under light.

And as a plus, I wonder if I could adjust the shadow to make it like a real shadow of a transparent thing. Like how to make the shadow of a glass cup.

Thanks.