# untested my $object = Foo->retrieve(1234); # an object &function_needing_int_not_object('' . $object);