EleFits  5.0.0
A modern C++ API on top of CFITSIO

◆ cast()

static T cast ( TFrom  value)
static

Helper function to cast Record value types. Valid casts are:

  • scalar number -> scalar number
  • complex number -> complex number
  • any -> scalar number if the underlying value type is a scalar number
  • any -> complex number if the value type is a complex number
  • any -> string if the value type is a string
  • scalar number -> any
  • complex number -> any
  • string -> any