Fix unchecked conversion warnings.