All the built-in value types have Parse and TryParse methods when you need conversion from string to those types.