Correctly detect casted fields.