Here you can find the source of toFloatArray(Object[] arr)
public static float[] toFloatArray(Object[] arr)
//package com.java2s; //License from project: Apache License public class Main { public static float[] toFloatArray(Object[] arr) { float[] arr2 = new float[arr.length]; for (int i = 0; i < arr.length; i++) { arr2[i] = Float.parseFloat(String.valueOf(arr[i])); }/* w w w . j a v a 2 s. c o m*/ return arr2; } }