{"action":"opened","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/9329","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/9329/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/9329/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/9329/events","html_url":"https://github.com/yiisoft/yii2/issues/9329","id":99356109,"number":9329,"title":"ActiveQuery::asArray() return integer as string","user":{"login":"tongtoanbs","id":7871218,"avatar_url":"https://avatars.githubusercontent.com/u/7871218?v=3","gravatar_id":"","url":"https://api.github.com/users/tongtoanbs","html_url":"https://github.com/tongtoanbs","followers_url":"https://api.github.com/users/tongtoanbs/followers","following_url":"https://api.github.com/users/tongtoanbs/following{/other_user}","gists_url":"https://api.github.com/users/tongtoanbs/gists{/gist_id}","starred_url":"https://api.github.com/users/tongtoanbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tongtoanbs/subscriptions","organizations_url":"https://api.github.com/users/tongtoanbs/orgs","repos_url":"https://api.github.com/users/tongtoanbs/repos","events_url":"https://api.github.com/users/tongtoanbs/events{/privacy}","received_events_url":"https://api.github.com/users/tongtoanbs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-06T05:12:55Z","updated_at":"2015-08-06T05:12:55Z","closed_at":null,"body":"is this a bug? this is what return when I used asArray()\r\n```\r\n$Tour = Tour::find()->asArray()->one();\r\n\r\n[\r\n    'id' => '1'\r\n    'title' => 'Lorem ipsum dolor sit amet'\r\n    'content' => 'lorem ipsm dola'\r\n    'placement' => 'right'\r\n    'element' => '#start-tour'\r\n    'path' => '/site/dashboard'\r\n    'duration' => '1000'\r\n    'backdrop' => '1'\r\n    'created_at' => '2015-08-06 05:04:36'\r\n    'updated_at' => '2015-08-06 05:04:36'\r\n]\r\n```\r\nI can solved this problem by using ```ArrayHelper::toArray()```\r\n```\r\n$Tour = ArrayHelper::toArray(Tour::find()->one());\r\n\r\n[\r\n    'id' => 1\r\n    'title' => 'Lorem ipsum dolor sit amet'\r\n    'content' => 'lorem ipsm dola'\r\n    'placement' => 'right'\r\n    'element' => '#start-tour'\r\n    'path' => '/site/dashboard'\r\n    'duration' => 1000\r\n    'backdrop' => 1\r\n    'created_at' => '2015-08-06 05:04:36'\r\n    'updated_at' => '2015-08-06 05:04:36'\r\n]\r\n```\r\n"}}