I cannot access to another class function by using LineTracing

OH MY GOD, IT FINALLY WORKED!
I thank you so so much, it was confusing me since days and weeks.
What I have done is, like you said, I created a new C++ Class, from type Actor called it ‘EnemyActor’.
Everything I needed was just

AEnemyActor* eActor = Cast<AEnemyActor>(HitActor);

Could you maybe explain to me what Cast excatly does?
I am new to programming and I don’t really understand the definiton of it :confused: