News

If the object is a Number, convert it to int; If the object is a CharSequence (which is super interface of String), convert the string it represents to int. No need to handle the conversion failure.