public void ConvertObjectToAnotherType() { Decimal obj1 = 5m; Double obj2 = 5f; Assert.AreEqual(5, obj1.ConvertTo <Decimal, Int32>()); Assert.AreEqual(5, obj2.ConvertTo <Double, Int32>()); }