The first sentence is fine. You have two of the word "the" in the second sentence. It should read, "I didn't peg you for the type of person who would do that."
I think the second sentence would sound more natural to me if it read, "I never pegged you as the type of person who would do that."
Chalk
American, native English speaker