Accepting Arrays of any type in unreal c++

In case nobody comes around with an actual answer, there are functions in the engine that uses templates and returns generic types at least. You could dive into one of those functions to get inspiration.

Example: