Prospective memory is the type of memory that involves remembering to perform a task or activity in the future.