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 of cast

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 using cast

"Casting a float to an int drops the decimal."

cast Word Forms

FormTypeMeaningExample
castverb (infinitive)To convert a value to a different type"Cast the input to a number before calculating."
castpast tenseConverted a value to a different type"The value was cast to an integer before comparing."
castinggerundConverting a value to a different type"Casting a float to an int truncates the decimal part."

Can you use "cast" correctly in a real dev context?

Tap the words to place them here
For developers

Turn vocabulary into real practice

Lingua-e turns words like this into full practice: fill the gap, listen and repeat, and real developer conversations. Free.

Practice for free →

No credit card needed

Vocabulary
merge conflictnoun

when two branches edit the same lines

Fill the gap

The build failedbecause of a missing dependency.

Multiple choice

What do you say when you're blocked?

AI'm blocked on this ticket.
BI am block on ticket.

Related terms

Was this page helpful?