Always cast int and long values to a long when preparing for a request.