String to int conversions with base argument support