Lingua-e
← Glossary

What does "cast" mean in programming?

cast is one of the most common terms in software development. This guide explains what it means, how it is used in practice, and why it matters, with real examples from the developer world.

Definition

To convert a value from one type to another. In TypeScript the 'as' keyword performs a type cast. In other languages you use explicit cast syntax like (int) value.

Example

"const n = value as number; // TypeScript type cast using 'as'"

Word forms

FormTypeMeaningExample
castverb (infinitive)To convert a value to a different type"You can cast a number to a string using String(n)."
castpast tenseConverted a value to a different type"The value was cast to an integer before the comparison."
castinggerundConverting a value to a different type"Casting a float to an int truncates the decimal part."

Related terms

Ready to practice your English at work?

Lingua-e has interactive exercises built around real developer conversations: standups, code reviews, retrospectives, and more. Practice until it comes naturally.

Try Lingua-e for free