unity round vector 3 to nearest integer

C#
//Converts a Vector3 to a Vector3Int by doing a Round to each value.
Vector3Int.RoundToInt(Vector3)
Source

Also in C#: