Typescript Check Type Of Array In C