xtd 0.2.0
Loading...
Searching...
No Matches

◆ as() [17/52]

template<typename new_type_t >
new_type_t xtd::as ( sbyte  value)

Casts a type into another type.

Parameters
valueobject to convert.
Returns
A new new_type_t object converted from value.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
sbyte value = 42;
float result = as<float>(value);
int8_t sbyte
Represents a 8-bit signed integer.
Definition sbyte.h:23
float as< float >(std::any value)
Casts a type into another type.
Definition __as_float.h:36