Question: 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(`public Roster setGameID(Games GamesID)`), this is in the second table. 

I need to convert the String to Type Games. This method doesn't work:

```
Games Test = (Games)GamesID;

```

GamesID is the String Input. 

Thanks Again!

Answer: 
The OP has answered the question it self but with no reason so here's the reason! 
{Directly quoting from <https://github.com/facebook/react/issues/2607#issuecomment-225911048>" }

```
import { React, Component } from 'react';

```

is incorrect, should be

```
import React, { Component } from 'react';

```

There is no named export named React. It is confusing because React is a CommonJS module, and since you’re using ES6 imports, Babel tries to map the semantics but they don’t match exactly. { Component } actually grabs Component from React itself so you might just:

```
import React from 'react'

```

and use `React.Component` instead if it’s less confusing.
For me in TypeScript the solution was:

```
import * as React from 'react';

```