My father will soon turn 40.

Literal

Father [topic-は] before-long 40-years-old [into-に] becomes [polite-ます].

~になる used for aging: [age]+になる = 'to turn [age].' Using ます marks the speech as polite.