Casts are a way to convert one Datatype into another.
But not every Datatype can be converted to every other. As an example, you can't convert a TCPClient into an Integer.
Using a cast could look like this:
var someInt <- int("19");
The Cast here being 'int()'