Should terrain cast shadows?.
castShadows is obsolete. Instead you should use shadowCastingMode which allows setting all shadow casting modes. Setting castShadows to true sets shadowCastingMode to Rendering.ShadowCastingMode.TwoSided. Setting it to false sets shadowCastingMode to Rendering.ShadowCastingMode.Off.