Remove cast to object in UpdateMember.