将单位转换为int

问题描述:

如何在后面的代码中将单位转换为int?

How to convert unit to int in code behind?

Convert.toInt32(x)

那应该可以解决问题.
Convert.toInt32(x)

That should do the trick.