parameters: (data, type, msg='')
docstring: Converts a data type to a desired type, raising CharmmFileError if it
          fails
docstring_summary: Converts a data type to a desired type, raising CharmmFileError if it
          fails
docstring_tokens: Converts a data type to a desired type raising CharmmFileError if it fails
function: def _convert(data, type, msg=''):
          """
          Converts a data type to a desired type, raising CharmmFileError if it
          fails
          """
          try:
              return type(data)
          except ValueError:
              raise CharmmFileError('Could not convert %s to %s' % (msg, type))
function_tokens: def _convert ( data , type , msg = '' ) : try : return type ( data ) except ValueError : raise CharmmFileError ( 'Could not convert %s to %s' % ( msg , type ) )