The type parameter '%1!ls!' cannot be used with the 'as' operator because it does not have a class type constraint nor a ...