[server][AtomicValue] Overload a cast operator.