An ugly alternative to interface to object casting