Hide visibility but cast shadows ?

There should be an option in the lighthing section called “Hidden shadow”
That should do the trick