The Raster.GetNoDataValue() returns an object according to the ArcGIS Pro API reference, but I don't see any further details on the object. What data does the object hold, and how to I access it?
For me, GetNoDataValue() was returning as a float[] type. I just cast the object as a float[],
float[] noDataValue = raster.GetNoDataValue() as float[];
and noDataValue[0] was my final result.