How to fix code deprecation?

You need to also

#include "BehaviorTree/Blackboard/BlackboardKeyType_Vector.h"