parseFloat in C#

is there something like parseFloat to convert a string to a number in c#?

string str = “12”;
float converted = float.Parse(str);

Think this could work.