Top "Casting" questions

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

How do I convert a string to a number in PHP?

I want to convert these types of values, '3', '2.34', '0.234343', etc. to a number. In JavaScript …

php casting type-conversion
Change column type in pandas

I want to convert a table, represented as a list of lists, into a Pandas DataFrame. As an extremely simplified …

python pandas dataframe types casting
Get int value from enum in C#

I have a class called Questions (plural). In this class there is an enum called Question (singular) which looks like …

c# enums casting int
How can I cast int to enum?

How can an int be cast to an enum in C#?

c# enums casting int
How do I check if a string is a number (float)?

What is the best possible way to check if a string can be represented as a number in Python? The …

python casting floating-point type-conversion
Convert String to double in Java

How can I convert a String such as "12.34" to a double in Java?

java string casting double type-conversion
Converting an integer to a string in PHP

Is there a way to convert an integer to a string in PHP?

php string casting type-conversion integer
Cast Double to Integer in Java

Any way to cast java.lang.Double to java.lang.Integer? It throws an exception "java.lang.ClassCastException: java.lang.…

java casting
How to convert a factor to integer\numeric without loss of information?

When I convert a factor to a numeric or integer, I get the underlying level codes, not the values as …

r casting r-faq
SQL error "ORA-01722: invalid number"

A very easy one for someone, The following insert is giving me the ORA-01722: invalid number why? INSERT INTO CUSTOMER …

sql oracle plsql casting type-conversion