I have a simple scenario that may or may not be possible. I have a class that contains an integer, for this purpose I\'ll make it as simple as possible:
pub
Try something like this
public static implicit operator int(Number num) { return num.Value; }