About 2,370,000 results
Open links in new tab
  1. 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 …

  2. casting - C# "as" cast vs classic cast - Stack Overflow

    Possible Duplicate: Casting vs using the ‘as’ keyword in the CLR I recently learned about a different way to cast. Rather than using SomeClass someObject = (SomeClass) obj; one can …

  3. Best practice in C++ for casting between number types

    May 28, 2016 · What is the best practice for casting between the different number types? Types float, double, int are the ones I use the most in C++. An example of the options where f is a …

  4. c# - Direct casting vs 'as' operator? - Stack Overflow

    Sep 25, 2008 · Direct casting vs 'as' operator? Asked 17 years, 1 month ago Modified 6 years, 5 months ago Viewed 238k times

  5. 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<> (), …

  6. casting - How do I convert between numeric types safely and ...

    Feb 2, 2015 · For example, casting using 4294967295us as u32 works and the Rust 0.12 reference docs on type casting say A numeric value can be cast to any numeric type. A raw …

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

    May 25, 2009 · 6 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 …

  8. vb.net - Casting in visual basic? - Stack Overflow

    VB actually has 2 notions of casting. CLR style casting Lexical Casting CLR style casting is what a C# user is more familiar with. This uses the CLR type system and conversions in order to …

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

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

    Proper way of casting pointer types Asked 12 years, 7 months ago Modified 12 months ago Viewed 128k times