implemented toObjectArray