Hi there,
I'm in the throws of learning C#, but I am currently trying to figure out why I would use casting with reference types. From what I understand, casting is used to convert one type to another (please correct me if I am wrong), and I understand this concept when using primitive data types. What I am struggling to understand is why you would use casting when dealing with reference types.
I've checked various sites, but none of them offer a clear understanding of why you would cast one object to another.
Am I missing something fundamental to OOP?
Any help would be gratefully received.
