Add IntN.cast, retain msb in toInt