Explicit cast between array types to aid vs2013

From pan_char_t[] to char[] ('pan_char_t' is alias of 'char').
Cleaned up array cast.