and put the type from above here. then we can use this function for all conversions postgres can handle