About 1,960,000 results
Open links in new tab
  1. 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, and have it …

  2. c++ - Dynamic casting for unique_ptr - Stack Overflow

    That is true, but what if the only intention is to move the pointer? In that case, the casting functions for unique_ptr would not make a copy, just move (or transform) the pointer.

  3. 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<> (), where const modifier can …

  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. 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 contained in …

  6. Casting vs Converting an object toString, when object really is a string

    Casting is quite different, and the 'as' key word performs a conditional cast, as has been said. The 'as' key word basically says "get me a reference of this type to that object if that object is this type" while …

  7. Casting a function pointer to another type - Stack Overflow

    Casting between function pointers and regular pointers (e.g. casting a void (*)(void) to a void*). Function pointers aren't necessarily the same size as regular pointers, since on some architectures they might …

  8. C# Inheritance & Casting - Stack Overflow

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

  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