Fix recasting