Fixed Trinary variable conversions