Here you can find the source of convertArrayValue(Object value, Class> type)
private static Object convertArrayValue(Object value, Class<?> type)
//package com.java2s; /*L// w ww .ja v a 2 s .c o m * Copyright Northwestern University. * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.io/psc/LICENSE.txt for details. */ public class Main { private static Object convertArrayValue(Object value, Class<?> type) { if (type.equals(String.class)) { return value.toString(); } else if (type.equals(Long.class)) { return ((Number) value).longValue(); } else if (type.equals(Double.class)) { return ((Number) value).doubleValue(); } else { return value; } } }