UFunction return TArray

Looks really promising and is working. Thanks a lot. Now, does this work with any Type of TArrays? For example TArray<TSharedPtr>? How would I do that? This is what I couldn’t get to work and I thought I had to use ‘*’ as the compiler said but I didn’t know where nor how.