Top "Casting" questions

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

How to convert an array to object in PHP?

How can I convert an array like this to an object? [128] => Array ( [status] => "Figure A. Facebook's horizontal scrollbars …

php arrays object casting
Regular cast vs. static_cast vs. dynamic_cast

I've been writing C and C++ code for almost twenty years, but there's one aspect of these languages that I've …

c++ pointers casting
In Python, how do I convert all of the items in a list to floats?

I have a script which reads a text file, pulls decimal numbers out of it as strings and places them …

python list casting
String was not recognized as a valid DateTime " format dd/MM/yyyy"

I am trying to convert my string formatted value to date type with format dd/MM/yyyy. this.Text="22/11/2009"; DateTime …

c# .net datetime types casting
How to cast an Object to an int

How can I cast an Object to an int in java?

java object casting integer
How do I convert from int to Long in Java?

I keep finding both on here and Google people having troubles going from long to int and not the other …

java casting int long-integer
Convert Int to String in Swift

I'm trying to work out how to cast an Int into a String in Swift. I figure out a workaround, …

string casting int converter swift
Safely casting long to int in Java

What's the most idiomatic way in Java to verify that a cast from long to int does not lose any …

java casting
When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used?

What are the proper uses of: static_cast dynamic_cast const_cast reinterpret_cast C-style cast (type)value Function-style cast …

c++ pointers casting c++-faq
Extract date (yyyy/mm/dd) from a timestamp in PostgreSQL

I want to extract just the date part from a timestamp in PostgreSQL. I need it to be a postgresql …

sql postgresql casting timestamp