How to cast all floating point parameters and buffers to 8-bit datatype

Hi,
I want to cast all floating-point parameters and buffers to 8-bit datatype (half of the half datatype). How can I do that? (I mean 8-bit floating point datatype)
Thanks :sunflower: