Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
Data casting is used to handle situation where for example new functions or methods expect a certain data type, but your logic handles another data type, by casting the programmer avoids the need to create new variables or modify in any way the existing code
1st Dec 2017, 9:47 PM
Roberto Guisarre
Roberto Guisarre - avatar