Fixed parameter validation to pass inherited types.