parseUInt /String

uint parseUInt(string str)

Parses a string into an uint primitive.

Sample:

string str = "128";
uint value = parseUInt(str);