#17 Manually casting so that windows does not throw out stupid warnings