Fix a problem with the expires_in value of the access grant response being an Integer instead of a Long.
Previously we were casting the Integer to a Long which threw a ClassCastException.