The speech isn't telling us what it's like to be in war or deal with cancer. It's telling us there's a difference between reading something and experiencing something. Whether it uses the real life experiences of Robin Williams or the fictional ones of his character is beside the point.