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

I cant seem to get it to work the way you said to do it, by doing BP->GetBlueprintClass()->GetDefaultObject< ASoldier >() it returns null and i cannot for the life of me work out how to get from the blueprint to the IUnit functions