Skip to content

Glossary: C# Basics

Cast

Also written: casting

Writing a type in parentheses, such as `(int)pounds`, to convert a value. Converting a `double` to an `int` this way cuts off the fraction rather than rounding.

Where the book teaches it

Related terms

Integer divisiondoubleMath.Round