Why is the cast to object required here?  Could you not just test the original DisplayMode arguments?