another question about types:

I need to have a variable x and y of real type, but when setting SDL_Rect I have to use a smallint type, so I have to convert x and y vars of type real to type smallint. If I just write this:
smallint(x);
The compiler shows that its an illegal conversion. Is there any way to convert it??

Thanks.