def _astype(self, dtype, **kwargs):
dtype = pandas_dtype(dtype)<EOL>if is_datetime64tz_dtype(dtype):<EOL><INDENT>values = self.values<EOL>if getattr(values, '<STR_LIT>', None) is None:<EOL><INDENT>values = DatetimeIndex(values).tz_localize('<STR_LIT>')<EOL><DEDENT>values = values.tz_convert(dtype.tz)<EOL>return self.make_block(values)<EOL><DEDENT>return super()._astype(dtype=dtype, **kwargs)<EOL>
these automatically copy, so copy=True has no effect
raise on an except if raise == True