title: How to convert a String to custom data type
body: <p>I need to convert a String to a Custom Data Type for a key. I am using Derby(it'd old, I know). I have two tables, linked with primary and foreign keys. The second table only accepts a parameter if it is the same as the first table(<code>public Roster setGameID(Games GamesID)</code>), this is in the second table. </p>
  
  <p>I need to convert the String to Type Games. This method doesn't work:</p>
  
  <pre><code>Games Test = (Games)GamesID;
  </code></pre>
  
  <p>GamesID is the String Input. </p>
  
  <p>Thanks Again!</p>