How can I convert object to array
Public async list<string> convertobjtoarray(object obj)
{
// here I need to convert obj to array
}
And need to count array count