Assigning TSubClassOf in C++

I tried what you suggested but the ProjectileClass remains empty after the assignment. Also using UBlueprint instead of UClass results in an error about incorrect assignment.