Should you always write about ‘what you know’?

‘Write about what you know.’
It’s one of those truisms that is so widely disseminated nobody ever stops to think if it’s actually good advice. Personally, as a concept, I’m not sold…