In titanic how old was Leonardo di caprio?

he's 23 years old during the filming of Titanic.