Příklad

public class ClassA {
int i;
public void methodA {

float f=Math.round((float)i);
}

}
Řešení
Odeberte Math.round() a jednoduše přetypujte i na float.

public class ClassA {
int i;
public void methodA {

float f=(float)i;
}

}