using System; int i = 3; double d = Convert.ToDouble(i); uint ui = Convert.ToUInt32(i); string s = Convert.ToString(i); string s2 = "23.34"; double d2 = Convert.ToDouble(s);
byte b = 4; float x = b; //ok double y=b; //ok int i=3; double d=i; //ok
int x = 220; byte b = (byte) x; double d = 34900; int i = (int) d;
int i = 3; i.ToString(); byte b = 4; b.ToString(); char c = 't'; c.ToString();
using System; string str = "23"; int i = Int32.Parse(str); //i=23 double d = Double.Parse(str); //d=23
byte[] arr = { 85, 46, 98, 101, 95 }; string str = System.Text.Encoding.ASCII.GetString(arr); //str = U.be_