Given the function f(x) = x^3 - 3x^2 - 4x - 5, what is the value of x when f(x) = 23? Choose the correct option from the following:

A) x = -1
B) x = 0
C) x = 1
D) x = 2