public void CastTest1() { Assert.Equal(0x3F, Dynamic.Cast <byte>(0x3F)); Assert.Equal(3, Dynamic.DCast(typeof(int), 3.14f)); Assert.Equal(typeof(IntPtr), Dynamic.DCast(typeof(IntPtr), 17).GetType()); Assert.Equal(typeof(char), Dynamic.DCast(typeof(char), (byte)0x3F).GetType()); Assert.Equal(null, Dynamic.DCast(typeof(void), 17)); }