This is just an utility method, that avoids that the caller has to do the conversion every time it is necessary.