partially workable conversion function

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>