ToScalar implemented