class_docstr: Cast Array as a scalar
class_docstr_tok: ["Cast","Array","as","a","scalar"]
code: def _layered_set_value(self, value: tp.Any) -> None:
      if not isinstance(value, (float, int, np.float_, np.int_)):
          raise TypeError(
              f"Received a {type(value)} in place of a scalar (float, int)"
          )
      super()._layered_set_value(np.array([value], dtype=float))
  
imports: import uuid
  import copy
  import bisect
  from enum import Enum
  import numpy
  from nevergrad.common import errors
  import nevergrad.common.typing
label_desc: Use image node_id 2 for calling the _ScalarCasting obj's underlying member method code with example usage: obj._layered_set_value(value) without return types