What Dreams May Come is a 1998 American fantasy drama film directed by Vincent Ward and starring Robin Williams and Cuba Gooding Jr. The film is based on the 1978 novel of the same name by Richard Matheson. It won the Academy Award for Best Visual Effects and the Art Directors Guild Award for Excellence in Production Design. It was also nominated for the Academy Award for Best Art Direction. The title is from a line in Hamlet's "To be, or not to be" soliloquy.