Remove some code duplicates in Update.java

Remove some code duplicates by extracting method convertValues(Object[] values) in Update.java and replace manual coping of array by System.arraycopy()