Thanks for the reply,
I have tried the assigning the sample variable from generic to object type as per the documentation. .tostring method not able to convert the object type of null value to string , but convert.tostring accepts a null value, and it executed successfully
→ Use .ToString() when you are sure that the object is not null
→ Use Convert.ToString() when there’s a possibility that the object might be null, and you want to avoid NullReferenceException while safely converting the object to a string.
Convert.ToString(Sample) will fail as it is not matching the method signature in a clear resolved way
Sample.ToString(), fails as Sample is nothing / null and therefore we got the null reference exception
When changing it to Sample | DataType: Object = nothing then Convert.ToString() is not leading to the BC30521
But same as above will fail on Sample.ToString() as Sample is null
Actually, im extracting the specific content from the queue data.so from queue the data might be blank or null, in worst case. while assigning the data to the string variable, .tostring throws object reference error and convert.to string works perfect though it is null. Later im checking the conditions to evaluate whether any of the extracted data content is null, if it is null, im throwing the business exception