Type casting problem [Solved]

I’m using the code:

int wipeLine;
float wipeTimer;
wipeLine = (Screen.width + 64) * wipeTimer;

And getting the error:

I guess I’m too used to JavaScript. I don’t know how to resolve this issue in C#.

The equation needs to calculate as a float and then change the final result into an int. How do I get it to do that?

Just cast the whole expression to an int:

wipeLine = (int)((Screen.width + 64) * wipeTimer);

Well, that worked! Thank you.