Cast does not work?

Sweet i got it solved. i was extending Apawn to my ATestpawn. I just realized the character class extends the pawn. I moved my pawn code into the character class file. Now it works



[2020.11.11-18.44.22:956][914]LogVolume: AFUOBVolume::ActorEnteredVolume 0000020ED2DDDD00 is *Other
[2020.11.11-18.44.22:956][914]LogVolume: AFUOBVolume::ActorEnteredVolume FirstPersonCharacter_C_0 is *Other
[2020.11.11-18.44.22:956][914]LogVolume: AOutOfBoundsVolume::ActorEnteredVolume() = *Other = TRUE

[2020.11.11-18.44.22:956][914]LogVolume: AFUOBVolume::ActorEnteredVolume 0000020ED2DDDD00 is *ToucherPawn
[2020.11.11-18.44.22:956][914]LogVolume: AFUOBVolume::ActorEnteredVolume FirstPersonCharacter_C_0 is *ToucherPawn
[2020.11.11-18.44.22:956][914]LogVolume: AOutOfBoundsVolume::ActorEnteredVolume() = *ToucherPawn = TRUE

[2020.11.11-18.44.22:956][914]LogVolume: AFUOBVolume::ActorEnteredVolume 0000020ED2D14F00 is *ToucherPc
[2020.11.11-18.44.22:956][914]LogVolume: AFUOBVolume::ActorEnteredVolume TestPlayerController_0 is *ToucherPc
[2020.11.11-18.44.22:956][914]LogVolume: AOutOfBoundsVolume::ActorEnteredVolume() = ToucherPc = TRUE


Thanks for all the info everyone.