More casting error fixes.