Convert a string literal to a number, which behaves like Number.parseInt.