Also, is it immune to damage caused by Sandstorm?
No and it is not immune to sandstorm damage.
Castform changes it's look and types only in Hailstorm, Rain and Sunny weather, so it isn't immune to Sandstorm