title: how to convert a string to a ushort
body: <p>I have researched all of the questions that match my query and tried their solutions however none appear to work for me so I am asking how I convert a string to a <code>ushort</code> I have this set up all ready   </p>
  
  <pre><code>public static string vid
  {
      get { return "&lt;vehicleid&gt;"; }
  }
  </code></pre>
  
  <p>I've tried to use this : <code>short[] result = vid.Select(c =&gt; (ushort)c).ToArray();</code>
      but when I go to put the vid ushort into this bit </p>
  
  <pre><code>[RocketCommand("vehicle", "This command spawns you a vehicle!", "&lt;vehicleid&gt;", AllowedCaller.Player)]
  public void ExecuteCommandVehicle(IRocketPlayer caller, string[] command)
  {
      UnturnedPlayer spawner = (UnturnedPlayer)caller;
      spawner.GiveVehicle(vid);
  }
  </code></pre>
  
  <p>I get the following error : </p>
  
  <blockquote>
    <p>Severity   Code    Description Project File    Line    Suppression State
    Error   CS1503  Argument 1: cannot convert from 'string' to 'ushort'    arena v by FridgeBlaster    C:\Users\Jonathan\Documents\Visual Studio 2015\Projects\arena v by FridgeBlaster\arena v by FridgeBlaster\vehicle.cs    71  Active</p>
  </blockquote>