title: Powershell: convert string to number
body: <p>Ok, I am beginner - and lost with this:</p>
  
  <p>I have an Array where some drive data from WMI are captured:</p>
  
  <pre><code>$drivedata = $Drives | select  @{Name="Kapazität(GB)";Expression={$_.Kapazität}}
  </code></pre>
  
  <p>The Array has these values (2 drives):</p>
  
  <pre><code>@{Kapazität(GB)=1.500} @{Kapazität(GB)=1.500}
  </code></pre>
  
  <p>and just want to convert the 1.500 into a number 1500</p>
  
  <p>I tried different suggestions I found here, but couldn't get it working:</p>
  
  <p><code>-Replace ".","" and  [int]</code>   doesn't work.
  I am not sure if regex would be correct and how to do this.</p>
  
  <p>For help many thanks in advance.</p>