You can use a *cast* to take an integer variable and ask Java to treat it as a double (and vice versa). This video gives you the details.
No download links available.