Casting in blueprint

Create a blueprint of InventoryChacter and set that as the default pawn in the game mode settings like you did for player controller.