testclass array casting