``` c# try { Convert.ChangeType(string, typeof(Param)); } catch (InvalidCastException) { Console.WriteLine("invalid cast"); } ```