request custom caster

the idea: i have get parameter name[].

I want if doesnt exist to be = empty array();

if it is not empty, i want to go trough all the values and sanitise them in my own way.

so how can i implement something like $this->request->get('name', 'array_string', []'); in a multi module app