How to Switch between two Blueprint classes using widget buttons

Hi ,
what I was asking was when you create a new variable it is originally a boolean type by default, so what type of variable did you place as a ‘set variable’ for referencing the pawn.Is it a pawn type of variable or an actor type