I believe he was already converted. Right before that, this happened:
Matthew 16:
15He said to them, “But who do you say that I am?” 16Simon Peter replied, “You are the Christ, the Son of the living God.” 17And Jesus answered him, “Blessed are you, Simon Bar-Jonah! For flesh and blood has not revealed this to you, but my Father who is in heaven.