diff --git a/MagickCore/channel.c b/MagickCore/channel.c
index 173b689..6f5f9b1 100644
--- a/MagickCore/channel.c
+++ b/MagickCore/channel.c
@@ -239,7 +239,7 @@
   if (destination_image == (Image *) NULL)
     return((Image *) NULL);
   if (IsGrayColorspace(image->colorspace) != MagickFalse)
-    (void) TransformImageColorspace(image,sRGBColorspace,exception);
+    (void) TransformImageColorspace((Image *) image,sRGBColorspace,exception);
   if (expression == (const char *) NULL)
     return(destination_image);
   destination_channel=RedPixelChannel;