Types are casted to eliminate warnings.