Combine sugar and egg yolks (this will eliminate your eggs curdling). Next add the milk and turn your heat on to low/medium. Next add butter. Add vanilla. Cook over low to medium heat, stirring constantly until thickened, about 12- 15 minutes, When your mixture starts to simmer start your time. Add coconut and pecans. Beat until thick enough to spread.