Fixed toValue not properly converting type aliases