Casting string to double