Added a 'convert' function to RasterSource