The active construction Xは Yに Nを Vます is transformed into the passive construction by changing Y into the subject. N remains in the same position; and the particle を, which marks N, is also unchanged.
Mr./Ms. Kobayashi was asked to do a job by John.
John asked Mr./Ms. Kobayashi to do a job.
Ali was asked his address by a policeman.