I haven't really found anything on the topic other than its bad to cast, but I would assume there is a "proper" way to accomplish this.
To illustrate:
Class B and Class C both inherit from Class A.
I have a function MyFunction(A obj);
In MyFunction() I would check if the object passed is of type Class B or C.
I determine this and then do a static_cast, but it feels like this has been causing issues, and have read this is not a good Idea.
This concept is fairly simple and I would assume that there is a good way to go about doing this. Can anyone give me some insight on this subject? Thanks.