I know that I can assign a value specifically to a float by doing

```
float y = 4.5f;

```

I want to do the same thing, except as a byte. How do I do this? I've checked the MSDN documentation and cannot find anything related to this. Also, what is this called?

Thanks,

**[Edit]**

For clarity the code I'm using this on is

```
byte myByte = a==b?1:0;

```

and the error I get is

> 
> Cannot implicitly convert type 'int'
>  to 'byte?'. An explicit conversion
>  exists (are you missing a cast?)
> 
> 
> 

Solution

```
byte myByte = (byte)(a==b?1:0);

```