About 2,120,000 results
Open links in new tab
  1. casting - Java - Cast a Map - Stack Overflow

    Oct 16, 2011 · How can I cast a Map<Object,Object> to Map<String,String> in the cleanest way? Is there a way to do that without iterating over the map? Thanks

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

  3. casting - How to cast or convert an unsigned int to int in C?

    Feb 26, 2011 · The real question is what you want to do when/if the value in the unsigned int it out of the range that can be represented by a signed int. If it's in range, just assign it and you're …

  4. What are the rules for casting pointers in C? - Stack Overflow

    Jun 23, 2013 · There are rules about casting pointers, a number of which are in clause 6.3.2.3 of the C 2011 standard. Among other things, pointers to objects may be cast to other pointers to …

  5. Need some clarification regarding casting in C - Stack Overflow

    Dec 22, 2009 · There are several situations that require perfectly valid casting in C. Beware of sweeping assertions like "casting is always bad design", since they are obviously and patently …

  6. C++ casting: how does casting really works - Stack Overflow

    Dec 22, 2022 · 2 I'm trying to understand how casting between base & derived types exactly works in C++. So I wrote a small proof-of-concept program

  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. casting - CAST to DECIMAL in MySQL - Stack Overflow

    I am trying to cast to Decimal in MySQL like this: CAST((COUNT(*) * 1.5) AS DECIMAL(2)) I'm trying to convert the number of rows in a table (times 1.5) to a floating point number with two …

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

  10. casting - How do I convert a string to a number in PHP? - Stack …

    Dec 16, 2011 · Casting is very important in database operations, for instance. For example on a parameterized PDO query, there will be a struggle sometimes for the parser to realize it is a …