She changed her name to Ann.

Literal

She [topic-は] name [object-を] Ann [to-に] changed.

名前をアンに変えた — に marks the target of the change. 変える (transitive, 'to change something') takes を for the thing changed and に for what it becomes.