title: Pluck id (integer) cast to string Laravel
body: <p>While plucking from a database, I get <code>id</code> as strings.</p>
  
  <pre><code>$alphabets = new Alphabet();
  return $alphabets-&gt;pluck('name', 'id');
  </code></pre>
  
  <p><strong><em>Output</em></strong></p>
  
  <pre><code>{
      "1": "Apple",
      "2": "Ball",
      "3": "Cat"
  }
  </code></pre>
  
  <p><strong><em>Expected</em></strong></p>
  
  <pre><code>{
      1: "Apple",
      2: "Ball",
      3: "Cat"
  }
  </code></pre>
  
  <p>But, when I reverse <code>ID</code> and <code>name</code>,</p>
  
  <pre><code>return $alphabets-&gt;pluck('id', 'name');
  </code></pre>
  
  <p>I get id as integer.</p>
  
  <pre><code>{
      "Apple": 1,
      "Ball": 2,
      "Cat": 3
  }
  </code></pre>
  
  <p>I'm not sure what's happening behind the scene. But how can I get ID in integer ? Actually, old flash session doesn't set value because of <code>1 vs "1"</code> in Form Collective.</p>
  
  <pre><code>{!! Form::select('alphabet', $alphabets, null, ['class' =&gt; 'form-control', 'multiple' =&gt; true]) !!}
  </code></pre>