Reverted warning level to 2, until we modify the generator to emit explicit casts.