Error digitalRead from char

REM14:
I know it is char. Using this line

char *arraypin [] = {"PR5", "PR6", "PR7", "PR9", "PR10", "PR11", "PR15", "PR16", "PR17", "PR21", "PR22", "PR23", "PR25", "PR26", "PR27"};

But it does not work.

Note that I'm defining the char array inside a switch case statement inside the void loop.

Maybe time to post your complete code. And tell us which board you're using.