env: support GetInt()