Save_object : accept type