"convert object type" via script?

Ist there a way to execute the “convert object type” (alt+C) from a script? I want to convert a text3d object into a mesh, but have not found the way to it (I’m new in this scripting thing, though…)

me = Mesh.New()

now the mesh object contains text polygons, youll need to link to an object to make use of it.