Add ValueObjectInterface with toScalar() method
Fixed namespace.