Frances Tiafoe secured the final place in the semi-finals of the Next Gen ATP Finals in Milan, after beating Swede Mikael Ymer.