Rest API call using restler

I'm using restler for making a rest call inside node.js application. the Rest service has request validation logic which throws type mismatch exception if there is mismatch in type. the http request :

getRespCopy('http://arabinda-365938.phx-os1.stratus.dev.ebay.com:8090/tabledata?cal_pool=calPool&cal_type=calType&cal_name=calName&cal_status=calStatus&start_time=startTime&end_time=endTime&table_type=tableTypeString');

In the http request above the rest service expects the table_type to be type int. I'm reading these parameters from post call using the following.

var tableTypeString = parseInt(tableType.toString()[0],10); 

now the above type is in int. But when i make the rest call i'm getting the following response.

{ timestamp: 1427146386629,
  status: 400,
  error: 'Bad Request',
  exception: 'org.springframework.validation.BindException',
  errors:
   [ { codes: [Object],
       arguments: [Object],
       defaultMessage: 'Failed to convert property value of type \'java.lang.String\' to required type \'int\' for property \'table_type\'; nested exception is java.lang.NumberFormatExce
peString"',
       objectName: 'tableData',
       field: 'table_type',
       rejectedValue: 'tableTypeString',
       bindingFailure: true,
       code: 'typeMismatch' } ],