Casting is, taking an Object of one particular type and “turning it into” another Object type. This process is called casting a variable.
If you are going to cast a variable, you’re most likely doing what’s known as a downcast.
Object obj = "This is just a regular sentence";
String objstr = (String)obj;