Suppress unneeded casting warnings.