casting to typedef pointer/array types (ticket #518)