Change the use of std::stoi with boost::lexical_cast