单项选择题

下列类型转换函数中,哪个用于将x转换成y指定的类型?()

A.hextoraw(string)
B.cast(x as y)
C.pg_systimestamp()
D.to_bigint(varchar)