csharp check control type

Code Example - csharp check control type

                
                        foreach(Control c in List)
{
  if (c is TextBox)
  {
    ((TextBox)c).Text = "This should be the new text";
  }
}