can I use float[] to hold ints?
<p>we have one class which has one <code>float[]</code> and one <code>int[]</code>. Sometimes the user of that class needs put float valuse and sometimes int values, but will not be both for each instance.</p>

<p>We know all the possilbe float and int values will not be big (less than 100000). I am thinking we may not need the <code>int[]</code>, just use the <code>float[]</code> to hold int values when necessary. At the time we use them, we can cast them to int when necessary. One storage array will be much clear.</p>

<p>How do you think about my idea? put int into float[] will not lose anything. I am right?</p>

<p><strong>EDIT:</strong></p>

<p>One class have one <code>float[]</code> class variable and one <code>int[]</code> class variable to hold values for user. Users of that will use either float[] or int[] but not both. So we have get float[]and set float[] methods, AND get int[] and set int[] methods, and different constructors. I am thinking to simplify this class by remove int[] class variable and use a float[] for both int values and float values for different users.</p>
