Determing type of object in array

I have an array with several text inputs and 2 buttons. How can I test what kind of object they are? I tried this but doesnt work.


for (var i:int = 0; i < newClientFields.length; i++)
{
	if (newClientFields* is TextInput)
	{
		trace("im a textinput");
	}else{
                trace("im a button");
        }
}

If I just trace out newClientFields* I get:


[object TextInput]
[object TextInput]
[object TextInput]
[object TextInput]
[object TextInput]
[object TextInput]
[object TextInput]
[object TextInput]
[object Button]
[object Button]