Resolve EndGameActivity GenericArray typecasting issue