bos: Change to using char casts for ka functions