Yes, i have an example regarding your problem you specified above. Try this it is beneficial for you.
Program - addition of byte type variables
public static void Main()
int b3; // We are required to declare b3 as byte BUT its declared as int. The reason is given below.
b1 = 100;
b2 = 200;
// Normally this is the addition statement
// b3 = b1 + b2;
// However it gives an error that cannot convert ''int'' to ''byte''.
// When b2 & b3 are added, we get an integer value which cannot be stored in byte b1
// Thus we will declare b3 as integer type & explicitly convert b2 & b3 to int.
b3 = (int)b1 + (int)b2;
Console.WriteLine("b1 = " + b1);
Console.WriteLine("b2 = " + b2);
Console.WriteLine("b3 = " + b3);