C# redefine a variable in class
<p>I'm sure about problem "types" in C #.</p>

<p>Suppose I have a class with the working name "item".
 This class has a field such as "variable". 
This field should match those of an element in my program, e.g. Boolean int16, int32, int64, double, uint, uint16.</p>

<p>Is there any possibility to redefine the type of a variable in dependency needs?
Or is there any other approach to this problem?</p>

<p>I thought on the definition of this variable as var or object but then projecting it on a given type. </p>

<p>The problem is that the later the check when assigning values do not exceed the range? </p>