TMPro.TextMeshPro and TMPro.TextMeshProUGUI both inherit from TMPRro.TMP_Text.
Therefore, we can access both as common interface such as TMP_Text.text by using the TMPro.TMP_Text.