you can not check object type cod in workflow as per my knowladge.
did you created a var char attribute in task.after you create varchar attribute keep that on the form.
write a javascript to hid that
on chage of regarding object id in task
if(crmForm.all.regardinobjectid.DataValue[0].type == <