what merhod to use in import action: castStateUsing or filstateUsing

Hi everyone, i have a table with id and name and i want to modify name, while importing, based on a condition applied to id, so my question is, which method i should use to achieve this, castStateUsing or fillStateUsing? thank you