title: PDO Fetch data returns array of string
body: <p>I am trying to get data from a MySQL database with <code>PDO</code> but unfortunately <code>PDO</code> returns the result as an array of strings. I want to keep the native MySQL data types in the result array.</p>
  
  <p>I have tried setting <code>PDO::ATTR_DEFAULT_FETCH_MODE</code> to both <code>PDO::FETCH_ASSOC</code> AND <code>PDO::FETCH_OBJ</code> but it was still returning <code>INT</code> data as string.</p>
  
  <p>Here is the result of dump:</p>
  
  <pre><code>array (size=1)
    0 =&gt; 
      object(stdClass)[27]
        public 'id' =&gt; string '3' (length=1)
        public 'avatar' =&gt; string '' (length=0)
        public 'fullName' =&gt; string 'Mikheil Janiashvili' (length=19)
        public 'email' =&gt; string 'xxxxx@yyyyy.com' (length=17)
        public 'phone' =&gt; string '23 3537 20 03544' (length=12)
        public 'educationGE' =&gt; string '' (length=0)
        public 'educationEN' =&gt; string '' (length=0)
        public 'educationRU' =&gt; string '' (length=0)
        public 'experienceGE' =&gt; string '' (length=0)
        public 'experienceEN' =&gt; string '' (length=0)
        public 'experienceRU' =&gt; string '' (length=0)
        public 'descriptionGE' =&gt; string '' (length=0)
        public 'descriptionEN' =&gt; string '' (length=0)
        public 'descriptionRU' =&gt; string '' (length=0)
  </code></pre>