Add object casting for instrospection methods