Renamed fromScalar to fromValue and getValue to toValue