I don’t think I understand what we are doing by using the cast function. At 2:40 in the lecture, Sam says that we are using it to “check that the USceneComponent is actually a UPrimitiveComponent”.
Before posting this question I did a little bit of searching and what I found was all the explanations described casting as a “conversion” of one type to another, which seems to be different from what says stated.
Regardless whether it’s a check or a conversion, I’m not understanding why we can state that a "USceneComponent " is actually a “UPrimitiveComponent” because they aren’t, right? Does this have to do with the Inheritance/Composition concept, were you are saying an object “is a”, or “has a”?
Thanks!