use built-in for obj -> dict