With nouns, there is no change whether they are in the Nominative or Objective. One can know which case they are from the function they fulfil: She is my teacher : subject complement He taught our teacher when he was at uni. : object of the sentence He gave his homework to the teacher. : object of the preposition 'to'.