Question: ```
Long x;
int y = (int) x;

```

Eclipse is marking this line with the error: 

> 
> Can not cast Long to an int
> 
> 
>

Answer: 
`Long x` is an object. 

```
int y = x.intValue();

```
```
int y = (int) (long) x;

```

is working.