AI OnAI Off
I looked at the event args using a breakpoint in VS and found out that the Object property in the StarSuiteEventArgs was a boxed User object (at least when the sender is OnlineStatusModule.Logon). So the problem is solved.