removed needs_cast stubs