SomeType a; SomeOtherType b; try { a=(SomeType)b; MessageBox.Show("Converted) } catch { MessageBox.Show("Can't Convert) }