C++ Error C2679: Binary '=': no operator found which takes right-hand operand of type 'TArray'

yeah thats what im doing at the moment but casting to IUnit is failing for some reason. it could be something im doing wrong in the function im trying to work it out at the moment