Tweak to prvent invalid conversions

Signed-off-by: Alan Gardner <alan@armoin.com>
Oops

Signed-off-by: Alan Gardner <alan@armoin.com>