Casting: Telling the compiler that an object is really something else without changing it (though some data loss may be incurred).
object obj_s= "12345"; string str_i = (string) obj; // "12345" as string, explicit int small = 12345; long big = 0; big = small; // 12345 as long, implicit
Parsing: Telling the program to interpret (on runtime) a string.
Converting: Telling the program to use built in methods to try to change type for what may be not simply interchangeable.
https://stackoverflow.com/questions/12552625/difference-between-casting-parsing-and-converting#:~:text=Casting%3A%20Telling%20the%20compiler%20that,data%20loss%20may%20be%20incurred).&text=Parsing%3A%20Telling%20the%20program%20to,(on%20runtime)%20a%20string.&text=Converting%3A%20Telling%20the%20program%20to,may%20be%20not%20simply%20interchangeable.
#programming #type-casting #parsing #conversion