Where types cannot be cast implicitly, you must use an explicit cast operator. The cast operator is nothing more than the target type in parentheses before the value you want to cast:
int i = 7;
byte b = (byte)i; // Explicit cast from int to byte
Using an explicit cast is potentially dangerous. The two most common errors are:
Note: an expression of type int can be explicitly cast to char. This may result in an invalid char.