Type casting warning fix.