You can't compile with errors because when there's an error, the compiler couldn't possibly know what to convert it to, it's like trying to compile this:
public void getInt() {
return number;
}
you can't return an int when the return type is void, so an error is generated because there is nothing the compiler can do. I'd suggest fixing the errors because, no offense, the code is obviously wrong, unless you are using a deprecated API. Otherwise, like DonCash said, you can post your code and we'll fix it if we can.