added implicit casts to bint and bstring to int and string respectively.