Top "Casting" questions

Casting is a process where an object type is explicitly converted into another type if the conversion is allowed.

T-sql - determine if value is integer

I want to determine if a value is integer (like TryParse in .NET). Unfortunatelly ISNUMERIC does not fit me because …

sql-server tsql casting integer isnumeric
Why cannot cast Integer to String in java?

I found some strange exception: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String How it …

java string casting integer
Shorter syntax for casting from a List<X> to a List<Y>?

I know its possible to cast a list of items from one type to another (given that your object has …

c# list casting ienumerable
How to have Java method return generic list of any type?

I would like to write a method that would return a java.util.List of any type without the need …

java list generics reflection casting
C#: Dynamic runtime cast

I would like to implement a method with the following signature dynamic Cast(object obj, Type castTo); Anyone know how …

c# c#-4.0 casting
Java Class.cast() vs. cast operator

Having being taught during my C++ days about evils of the C-style cast operator I was pleased at first to …

java generics casting compiler-warnings
Converting a pointer into an integer

I am trying to adapt an existing code to a 64 bit machine. The main problem is that in one function, …

c++ gcc casting 64-bit 32-bit
Hive cast string to date dd-MM-yyyy

How can I cast a string in the format 'dd-MM-yyyy' to a date type also in the format 'dd-MM-yyyy' in …

string date casting hive
Java converting Image to BufferedImage

There is already question like this link on StackOverflow and the accepted answer is "casting": Image image = ImageIO.read(new …

java image casting bufferedimage
Direct casting vs 'as' operator?

Consider the following code: void Handler(object o, EventArgs e) { // I swear o is a string string s = (string)o; // 1 //…

c# casting