The trouble with conversions is whether the conditions are already met. In your case you indicate a slicing off of the first 5 positions. This implies that
- there will always be more than 5 characters
- the returned result will be of the same form as the input
Python examples, since they tend to be simple to understand ...
>>> a = 3001522708
>>> str(a)[5:]
'22708'
>>> int(str(a)[5:])
22708
line 1 your input is a number
line 2 conversion to string is required for slicing, and keep only the 'positions' after the 5th
line 3 the result is a conversion of type to string with the first 5 removed
line 4 assuming that the original numeric format is needed, this needs to be returned to integer
line 5 the result after conversion to string, slicing, conversion back
An example of an exception and what to do, can get complex,
>>> int(str(a)[5:]) if len(str(a))>5 else -999
-999
So attention to the small details is important.