ai to object