FObjectFinder; make a generic function

■■■■… that was so easy… I am new to UE4. I used to program at C# and I am trying to understand how things works here… Thanks so much!!!