There isn't one actor for Ted Mosby's son. The role is split across the show's flash-forward timeline:
The son is never shown as an adult on camera; Saget's voice is the constant presence, making the narration itself a character. The dual casting lets the show depict the son at different ages while keeping the focus on Ted's recounting.