Apply filters to arguments to handle casting and SAMification.