IsCastingShadow
From MaratisWiki
Check if light has shadow casting enabled.
if isCastingShadow(lightObject) then
-- Shadow casting is enabled
else
-- Shadow casting is disabled
end
To enable or disable shadow casting use enableShadow