About 1,960,000 results
Open links in new tab
  1. c++ - When should static_cast, dynamic_cast, const_cast, and ...

    The C-style casts can do virtually all types of casting from normally safe casts done by static_cast<> () and dynamic_cast<> () to potentially dangerous casts like const_cast<> (), …

  2. How to convert a string to number in TypeScript? - Stack Overflow

    Given a string representation of a number, how can I convert it to number type in TypeScript? var numberString: string = "1234"; var numberValue: number = /* what should I do with …

  3. java: How can I do dynamic casting of a variable from one type to ...

    2 Your problem is not the lack of "dynamic casting". Casting Integer to Double isn't possible at all. You seem to want to give Java an object of one type, a field of a possibly incompatible type, …

  4. c# - Casting a variable using a Type variable - Stack Overflow

    In C# can I cast a variable of type object to a variable of type T where T is defined in a Type variable?

  5. Can I avoid casting an enum value when I try to use or return it?

    Casting becomes necessary since you are trying to convert from the governing type (of type YourCustomEnum which derives from the System.Enum class) to the underlying type, i.e., int …

  6. How do I cast int to enum in C#? - Stack Overflow

    Casting is sometimes confusing in C# if you don't know the details... Anyhow, because int != short, it will throw (unboxing fails). If you do object o = (short)5;, it will work, because then the …

  7. C# Inheritance & Casting - Stack Overflow

    C# Inheritance & Casting Asked 14 years, 11 months ago Modified 5 years, 4 months ago Viewed 19k times

  8. Safe casting in python - Stack Overflow

    Casting has sense only for a variable (= chunk of memory whose content can change) There are no variables whose content can change, in Python. There are only objects, that aren't …

  9. sql - Casting varchar as date - Stack Overflow

    I think I've read just about every thread on this topic and none of them are solving my problem. First of all, the database I'm working with has all date fields set to a varchar data type, which d...

  10. c++ - Proper way of casting pointer types - Stack Overflow

    Proper way of casting pointer types Asked 12 years, 8 months ago Modified 1 year, 1 month ago Viewed 128k times