C++ Casting to Line trace function is causing the engine to crash

Sorry I have troubles following you there =)

If you’re already using C++, start UE from visual studio and reproduce the crash. Then inside visual studio look at the line where it crashed (it will be shown there) and at all values of the relevant variables for that line of code.