If you order a YZ250/400E "filter assembly" from your dealer, it will come with a cage.
Funnily enough, ordering a 250/400D filter assembly gets you just a filter element - some sort of weirdness with superseceding part numbers.
It worked four or five years ago, anyhow...