Why even use awk rather than the shell's (well, bash's) builtin printf?
$ printf '%d\n' "0005"
5 $ printf '%d\n' "0005"
5 $ printf '%d\n' "0025"
21 $ echo "0005" | xargs printf '%d\n'
5
That said, my suggestion doesn't work anyway since the leading 0 marks it as octal, d'oh (as mentioned elsewhere in the thread).