We can avoid these methods that mutate variable type by setting up the correct variable type in the first place.
CC: @dcoudert
Component: linear programming
Author: Matthias Koeppe
Branch/Commit: b82a512
Reviewer: Travis Scrimshaw, David Coudert
Issue created by migration from https://trac.sagemath.org/ticket/33504