improved for BeanToArray