float to int c#

C#
Convert.ToInt32(float)
Source

Also in C#: