Cast hour string as integer