Can I connect SDA and SCL pins of a DUE and a MEGA

Can I connect SDA and SCL pins of a DUE and a MEGA?

I appreciate the DUE is 3.3v and the MEGA is 5v but is it safe to connect them on those pins? Is there a way to make it safe? or do I just need to buy a second DUE?

Thanks all Mark

You can use a level translator. PCA9515 would be one Option.

Another option that would be a little messier - remove the pullups to 5V on the Mega, and add external pullups to 3.3V.
RN1 pins 2 & 3. Remove the part altogether, or cut the traces on the board going to pads 2 & 3. RN1 is the 8-pin part inside of D30 on the dual row header on a Mega Rev3.

I've paired Due and Mega with similar converter than this logic level converter.. You can find a hookup guide also, it's quite easy to use..

TommiP