Why is this C++ Linetrace Function not showing the Debug LineTrace?

I am calling a function that is within the gun class. I might be casting incorrectly, but at the same time the enemy fires then crashes. So the cast might be correct, but something happens that causes it to crash.