<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_values(self, dtype=None):
 """ return an internal format, currently just the ndarray this is often overridden to handle to_dense like operations """

        if is_object_dtype(dtype):
            return self.values.astype(object)
        return self.values