convert target to object