how to make a cast in csharp

Code Example - how to make a cast in csharp

                
                        // if we have:
float f = 12.0f;
// and we want to put the value of f into 
int x;
// we can cast f to int like this:
x = (int)f //(int) is the cast