+ 1
For the most part yes, explicit casting is what that is called. There are other uses though. Objects being type casted is useful to.. Like having a hashmap with key being something like String and value being Object. This allows you to store things like integers, strings, etc... all in one hashmap. You can then type cast each value as needed.
27th Jul 2016, 12:26 PM
James - avatar