I want a function’s output to be of a specific object reference type (ORT). I’m struggling to figure out how to do this in blueprints, as line trace (out hit hit actor) returns a generalized Actor ORT. I can check that the actor hit is of a specific type, which is okay for some defensive programming and was the solution for [a similar question asked here][1]. I have a bunch of other functions that all have the input the Desired ORT.
Basically, I’m looking for a way to make sure that hit actor is the Desired ORT and then have a output node be of that desired object reference. Any ideas on how to do this?