Would you be willing to be a machine to live “forever”?

If the technology existed to put your brain in a robotic body (which of course could be upgraded and repaired much easier than a biological body), would you do it? On the one hand, it would allow you to live almost indefinitely (at least until your brain decays, though it could be that your brain could be uploaded to a robotic “brain”) since you can just replace any broken parts. On the other hand, you would be a robot, not a person.

Would you do it?