Japt, 8 bytes
Takes input as an array of characters.
£48nXcÃì
Try it (Header splits string input to array)
£48nXcÃì :Implicit input of array
£ :Map each X
48n : Subtract 48 from
Xc : Charcode of X
à :End map
ì :Convert to integer from base-10 digit array