Aligned from_obj() signature with Entity.from_obj()