About 2,250,000 results
Open links in new tab
  1. c# - Direct casting vs 'as' operator? - Stack Overflow

    Sep 25, 2008 · Direct Casting Types don't have to be strictly related. It comes in all types of flavors. Custom implicit/explicit casting: Usually a new object is created. Value Type Implicit: …

  2. c# - 'casting' with reflection - Stack Overflow

    Sep 9, 2009 · 'casting' with reflection Asked 16 years, 1 month ago Modified 4 years, 6 months ago Viewed 65k times

  3. 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 …

  4. casting - C#, How to convert Object to Class Type - Stack Overflow

    Mar 17, 2022 · I am working on .NET CORE application. I have declare an Object that I need to cast or convert to Customer class type. I have scenario where based on bool value I need to …

  5. Regular cast vs. static_cast vs. dynamic_cast - Stack Overflow

    Aug 26, 2008 · Static cast is also used to cast pointers to related types, for example casting void* to the appropriate type. dynamic_cast Dynamic cast is used to convert pointers and references …

  6. casting - Explanation of ClassCastException in Java - Stack Overflow

    May 25, 2009 · Do you understand the concept of casting? Casting is the process of type conversion, which is in Java very common because its a statically typed language. Some …

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

  8. Should I cast the result of malloc (in C)? - Stack Overflow

    Although malloc without casting is preferred method and most experienced programmers choose it, you should use whichever you like having aware of the issues. i.e: If you need to compile C …

  9. How to cast the size_t to double or int C++ - Stack Overflow

    My question is that I have a size_t data, but now I want to convert it to double or int. If I do something like size_t data = 99999999; int convertdata = data; the compiler will report warning.

  10. casting - Converting a string to a date in DB2 - Stack Overflow

    Jan 9, 2015 · I am working with a DB2 database for the first time. I am trying to work with DB2 dates, but the data is stored as a string in the DB2 database. I want to convert this date-string …