This paper is about optimal control problems associated to stochastic systems composed of a large number of N ( \(N\sim \infty \) ) interacting objects (e.g., particles, agents, data, etc.) evolving among a finite or countable set of classes or categories according to a semi-Markov process. Such systems are modeled by a control model \(\mathcal{S}\mathcal{M}_{N}\) where the states are vectors whose components are the proportions of objects in each class. Since N is too large, from a practical point of view, it is almost impossible to obtain a solution of the control problem. Under this setting, we apply a mean field approach which consists of letting \(N\rightarrow \infty \) (the mean field limit). Then we obtain the mean field control model \(\mathcal{S}\mathcal{M}\) , independent on N, which is easier to study than \(\mathcal{S}\mathcal{M}_{N}.\) Our main objective is to show that an optimal policy \(\pi _{*},\) under a discounted criterion, in \(\mathcal{S}\mathcal{M}\) has a good behavior in \(\mathcal{S}\mathcal{M}_{N}.\) Specifically, we prove that \(\pi _{*}\) is nearly discounted optimal in \(\mathcal{S}\mathcal{M}_{N}\) asymptotically as \(N\rightarrow \infty .\)