The to_bit function

function to_bit ( s : std_ulogic ) return bit;

Converts a std_ulogic or std_logic value to the built-in VHDL bit type.