if you got an object from findClassObjects, findObject, findObjectById you can use the .name property