Spawning and Destroying Actors causes massive performance loss

On the Get Component Node, select the class and right click the Return Value pin → Promote to Variable. This will create one with the correct type.

Other than that, you can always change variable type:

image