Implement (object) cast