Q. What is the correct way to cast a string to an integer in Ruby? (A) string.to_i (B) string.integer (C) int(string) (D) string.convert(:integer) ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (A) string.to_i