In C# following statements shows which type of conversion, double d = 78.5; int x = (int) d; code example
Example: c# data types
using System;
class BoxingExample
{
static void Main()
{
int i = 123;
object o = i; // Boxing
int j = (int)o; // Unboxing
}
}