> Hi,
> I have an array with float numbers. How can cast it
> to array of integer numbers?
>
> This casting DOES NOT work
> > overflowData=(int[]) overflowDataTemp;
>
> where overflowDataTemp has float[] structure.
>
> Thank you!
Create a new array of ints and cast each array element to an int.
int[] newInts = new int[ overflowDataTemp.length ];
for ( int i = 0; i < overflowDataTemp.length; i++ )
{
newInts[ i ] = (int)overflowDataTemp[ i ];
}