How to make a function output node return a Desired Object Refrence Type from trace hit result?

Well that was stupidly simple. Thanks