Workaround for being unable to set datatype in rasterEngine.