unity to integer

C#
int.Parse("500");
Source

Also in C#: