Comparing an object

Hi I want to check and compare what my obects value is. When I trace it out i get

[object faceType1]

what I want to so is say

if (holder_mc.getChildAt(0) = “faceType1”) {

// do something

}

else f (holder_mc.getChildAt(0) = “faceType2”) {

// do something else

}

now this breaks because I am comparing a string to an object. any ideas?