convert object proto