Use parse to convert a string to an integer.

Example:

BTime = parse(Int,BTimeStr)