function convertToInteger(str) {
  return parseInt(str);
}

convertToInteger("56"); 
by