try to cast to array