The form that Castform takes depends on the weather conditions of the battle. During periods of stong sunlight, it transforms into its Sunny Form, a Fire Type; when it is raining it transforms into its Rainy Form, a Water Type; when it is hailing it transforms into its Snowy Form, an Ice Type.
Forecast doesn't have an effect in the Overworld.
Pokémon With Forecast
Related ThreadsOvernight forecast for Unova - Hot weather ahead (with Leftovers) - last post by @ Jun 3, 2011
Unova Forecast - Overnight Snow - last post by @ Apr 1, 2011