Have a look at the conversion system:
https://github.com/Unity-Technologies/EntityComponentSystemSamples/tree/master/Samples/Assets/HelloCube/5.%20SpawnFromMonoBehaviour