object -> struct