I was trying to convert string to Byte.
The value of the string was updated by reading XML
string MyValue= Node.Attributes["Value"].Value.ToUpper().ToString();
MyValue = "NETWORK";
MyObject.MyValue= Convert.ToByte(MyValue);
Even tried with using Encoding Option
But I was getting error as "Input string was not in a correct format"