I have thread name coming into ll

Thread-99

but for Thread-9 ,this conversion return errors :please suggest me a code to convert the name of thread to only INT type number

String...