title: Conversion from int to enum class type possible?
body: <p>I have a situation using C++ language, where I have got integer values from 1 to 7 for input into a method for weekdays . As I can easily convert enum class type to integers using <code>static_cast</code> but converting from integer to an enum is a bit of problem.  Question aroused - is it possible to convert a number to enum class type? Because in another method which generated integer would have to call enum class weekday input based method for weekday update.
  That update method only takes enum class type i.e
  enum class weekday
  {
  Monday =1,
  .
  .
  Sunday
  }</p>
  <p>Method is <code>void updateWeekday(weekday e)</code>.</p>
  <p>Can anybody help with that please ?</p>